14 #ifndef LLVM_DEBUGINFO_SYMBOLIZE_SYMBOLIZE_H 15 #define LLVM_DEBUGINFO_SYMBOLIZE_SYMBOLIZE_H 47 bool UseSymbolTable =
true,
bool Demangle =
true,
48 bool RelativeAddresses =
false, std::string DefaultArch =
"")
49 : PrintFunctions(PrintFunctions), UseSymbolTable(UseSymbolTable),
50 Demangle(Demangle), RelativeAddresses(RelativeAddresses),
51 DefaultArch(
std::move(DefaultArch)) {}
61 uint64_t ModuleOffset,
64 uint64_t ModuleOffset,
67 uint64_t ModuleOffset);
71 DemangleName(
const std::string &
Name,
77 using ObjectPair = std::pair<ObjectFile *, ObjectFile *>;
84 getOrCreateModuleInfo(
const std::string &ModuleName,
StringRef DWPName =
"");
86 ObjectFile *lookUpDsymFile(
const std::string &Path,
88 const std::string &ArchName);
89 ObjectFile *lookUpDebuglinkObject(
const std::string &Path,
91 const std::string &ArchName);
95 const std::string &ArchName);
101 const std::string &ArchName);
103 std::map<std::string, std::unique_ptr<SymbolizableModule>> Modules;
106 std::map<std::pair<std::string, std::string>, ObjectPair>
107 ObjectPairForPathArch;
110 std::map<std::string, OwningBinary<Binary>> BinaryForPath;
114 std::map<std::pair<std::string, std::string>, std::unique_ptr<ObjectFile>>
115 ObjectForUBPathAndArch;
123 #endif // LLVM_DEBUGINFO_SYMBOLIZE_SYMBOLIZE_H
This class represents lattice values for constants.
DILineInfoSpecifier::FunctionNameKind FunctionNameKind
This class is the base class for all object file types.
DINameKind
A DINameKind is passed to name search methods to specify a preference regarding the type of name reso...
amdgpu Simplify well known AMD library false Value Value const Twine & Name
Tagged union holding either a T or a Error.
std::vector< std::string > DsymHints
FunctionNameKind PrintFunctions
DINameKind FunctionNameKind
StringRef - Represent a constant reference to a string, i.e.
Options(FunctionNameKind PrintFunctions=FunctionNameKind::LinkageName, bool UseSymbolTable=true, bool Demangle=true, bool RelativeAddresses=false, std::string DefaultArch="")
LLVMSymbolizer(const Options &Opts=Options())