llvm.org GIT mirror llvm / 2eebdab
[llvm-symbolizer] Add -C as a short alias to -demangle Summary: Provides -C as alias to -demangle. Motivation: https://bugs.llvm.org/show_bug.cgi?id=40069. Reviewers: jhenderson, ruiu, rnk, fjricci Reviewed By: jhenderson, ruiu Subscribers: rupprecht, erik.pilkington, llvm-commits Differential Revision: https://reviews.llvm.org/D56591 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@351300 91177308-0d34-0410-b5e6-96231b3b80d8 Dmitry Venikov 7 months ago
3 changed file(s) with 7 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
8282 Prefer function names stored in symbol table to function names
8383 in debug info sections. Defaults to true.
8484
85 .. option:: -demangle
85 .. option:: -demangle, -C
8686
8787 Print demangled function names. Defaults to true.
8888
209209 RUN: echo "%p/Inputs/dwarfdump-test4.elf-x86-64 0x62c" > %t.input7
210210 RUN: llvm-symbolizer --functions=short --demangle=false < %t.input7 \
211211 RUN: | FileCheck %s --check-prefix=SHORT_FUNCTION_NAME
212 RUN: llvm-symbolizer --functions=short -C=false < %t.input7 \
213 RUN: | FileCheck %s --check-prefix=SHORT_FUNCTION_NAME
212214
213215 SHORT_FUNCTION_NAME-NOT: _Z1cv
5454 ClPrintInlining("inlining", cl::init(true),
5555 cl::desc("Print all inlined frames for a given address"));
5656
57 // -demangle, -C
5758 static cl::opt
5859 ClDemangle("demangle", cl::init(true), cl::desc("Demangle function names"));
60 static cl::alias
61 ClDemangleShort("C", cl::desc("Alias for -demangle"),
62 cl::NotHidden, cl::aliasopt(ClDemangle));
5963
6064 static cl::opt ClDefaultArch("default-arch", cl::init(""),
6165 cl::desc("Default architecture "