mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 07:17:36 +00:00
[DWARF parser] Teach DIContext to fetch short (non-linkage) function names for a given address.
Change --functions option in llvm-symbolizer tool to accept values "none", "short" or "linkage". Update the tests and docs accordingly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209050 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
|
||||
namespace llvm {
|
||||
|
||||
typedef DILineInfoSpecifier::FunctionNameKind FunctionNameKind;
|
||||
using namespace object;
|
||||
|
||||
namespace symbolize {
|
||||
@@ -34,17 +35,17 @@ class LLVMSymbolizer {
|
||||
public:
|
||||
struct Options {
|
||||
bool UseSymbolTable : 1;
|
||||
bool PrintFunctions : 1;
|
||||
FunctionNameKind PrintFunctions;
|
||||
bool PrintInlining : 1;
|
||||
bool Demangle : 1;
|
||||
std::string DefaultArch;
|
||||
Options(bool UseSymbolTable = true, bool PrintFunctions = true,
|
||||
Options(bool UseSymbolTable = true,
|
||||
FunctionNameKind PrintFunctions = FunctionNameKind::LinkageName,
|
||||
bool PrintInlining = true, bool Demangle = true,
|
||||
std::string DefaultArch = "")
|
||||
: UseSymbolTable(UseSymbolTable), PrintFunctions(PrintFunctions),
|
||||
PrintInlining(PrintInlining), Demangle(Demangle),
|
||||
DefaultArch(DefaultArch) {
|
||||
}
|
||||
DefaultArch(DefaultArch) {}
|
||||
};
|
||||
|
||||
LLVMSymbolizer(const Options &Opts = Options()) : Opts(Opts) {}
|
||||
|
||||
Reference in New Issue
Block a user