14 #ifndef LLVM_DEBUGINFO_SYMBOLIZE_SYMBOLIZE_H
15 #define LLVM_DEBUGINFO_SYMBOLIZE_SYMBOLIZE_H
32 using namespace object;
40 bool UseSymbolTable : 1;
42 bool RelativeAddresses : 1;
47 bool UseSymbolTable =
true,
bool Demangle =
true,
48 bool RelativeAddresses =
false, std::string
DefaultArch =
"")
49 : PrintFunctions(PrintFunctions), UseSymbolTable(UseSymbolTable),
50 Demangle(Demangle), RelativeAddresses(RelativeAddresses),
61 uint64_t ModuleOffset);
63 uint64_t ModuleOffset);
65 uint64_t ModuleOffset);
69 DemangleName(
const std::string &
Name,
75 using ObjectPair = std::pair<ObjectFile *, ObjectFile *>;
82 getOrCreateModuleInfo(
const std::string &ModuleName);
84 ObjectFile *lookUpDsymFile(
const std::string &Path,
86 const std::string &ArchName);
87 ObjectFile *lookUpDebuglinkObject(
const std::string &Path,
89 const std::string &ArchName);
93 const std::string &ArchName);
99 const std::string &ArchName);
101 std::map<std::string, std::unique_ptr<SymbolizableModule>> Modules;
104 std::map<std::pair<std::string, std::string>, ObjectPair>
105 ObjectPairForPathArch;
108 std::map<std::string, OwningBinary<Binary>> BinaryForPath;
112 std::map<std::pair<std::string, std::string>, std::unique_ptr<ObjectFile>>
113 ObjectForUBPathAndArch;
121 #endif // LLVM_DEBUGINFO_SYMBOLIZE_SYMBOLIZE_H
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...
Tagged union holding either a T or a Error.
static StringRef DefaultArch
std::vector< std::string > DsymHints
FunctionNameKind PrintFunctions
DINameKind FunctionNameKind
Options(FunctionNameKind PrintFunctions=FunctionNameKind::LinkageName, bool UseSymbolTable=true, bool Demangle=true, bool RelativeAddresses=false, std::string DefaultArch="")
LLVMSymbolizer(const Options &Opts=Options())