mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 04:24:00 +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:
@ -35,10 +35,15 @@ ClUseSymbolTable("use-symbol-table", cl::init(true),
|
||||
cl::desc("Prefer names in symbol table to names "
|
||||
"in debug info"));
|
||||
|
||||
static cl::opt<bool>
|
||||
ClPrintFunctions("functions", cl::init(true),
|
||||
cl::desc("Print function names as well as line "
|
||||
"information for a given address"));
|
||||
static cl::opt<FunctionNameKind> ClPrintFunctions(
|
||||
"functions", cl::init(FunctionNameKind::LinkageName),
|
||||
cl::desc("Print function name for a given address:"),
|
||||
cl::values(clEnumValN(FunctionNameKind::None, "none", "omit function name"),
|
||||
clEnumValN(FunctionNameKind::ShortName, "short",
|
||||
"print short function name"),
|
||||
clEnumValN(FunctionNameKind::LinkageName, "linkage",
|
||||
"print function linkage name"),
|
||||
clEnumValEnd));
|
||||
|
||||
static cl::opt<bool>
|
||||
ClPrintInlining("inlining", cl::init(true),
|
||||
|
Reference in New Issue
Block a user