LLVM 20.0.0git
SymbolizableModule.h
Go to the documentation of this file.
1//===- SymbolizableModule.h -------------------------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// This file declares the SymbolizableModule interface.
10//
11//===----------------------------------------------------------------------===//
12#ifndef LLVM_DEBUGINFO_SYMBOLIZE_SYMBOLIZABLEMODULE_H
13#define LLVM_DEBUGINFO_SYMBOLIZE_SYMBOLIZABLEMODULE_H
14
16#include <cstdint>
17
18namespace llvm {
19namespace symbolize {
20
22
24public:
25 virtual ~SymbolizableModule() = default;
26
28 DILineInfoSpecifier LineInfoSpecifier,
29 bool UseSymbolTable) const = 0;
30 virtual DIInliningInfo
32 DILineInfoSpecifier LineInfoSpecifier,
33 bool UseSymbolTable) const = 0;
34 virtual DIGlobal
35 symbolizeData(object::SectionedAddress ModuleOffset) const = 0;
36 virtual std::vector<DILocal>
38
39 virtual std::vector<object::SectionedAddress>
40 findSymbol(StringRef Symbol, uint64_t Offset) const = 0;
41
42 // Return true if this is a 32-bit x86 PE COFF module.
43 virtual bool isWin32Module() const = 0;
44
45 // Returns the preferred base of the module, i.e. where the loader would place
46 // it in memory assuming there were no conflicts.
47 virtual uint64_t getModulePreferredBase() const = 0;
48};
49
50} // end namespace symbolize
51} // end namespace llvm
52
53#endif // LLVM_DEBUGINFO_SYMBOLIZE_SYMBOLIZABLEMODULE_H
A format-neutral container for inlined code description.
Definition: DIContext.h:94
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:50
virtual DIGlobal symbolizeData(object::SectionedAddress ModuleOffset) const =0
virtual DIInliningInfo symbolizeInlinedCode(object::SectionedAddress ModuleOffset, DILineInfoSpecifier LineInfoSpecifier, bool UseSymbolTable) const =0
virtual std::vector< object::SectionedAddress > findSymbol(StringRef Symbol, uint64_t Offset) const =0
virtual uint64_t getModulePreferredBase() const =0
virtual bool isWin32Module() const =0
virtual std::vector< DILocal > symbolizeFrame(object::SectionedAddress ModuleOffset) const =0
virtual DILineInfo symbolizeCode(object::SectionedAddress ModuleOffset, DILineInfoSpecifier LineInfoSpecifier, bool UseSymbolTable) const =0
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
@ Offset
Definition: DWP.cpp:480
DINameKind
A DINameKind is passed to name search methods to specify a preference regarding the type of name reso...
Definition: DIContext.h:142
Container for description of a global variable.
Definition: DIContext.h:120
Controls which fields of DILineInfo container should be filled with data.
Definition: DIContext.h:146
DINameKind FunctionNameKind
Definition: DIContext.h:157
A format-neutral container for source line information.
Definition: DIContext.h:32