[PATCH] D108019: [NFC][llvm-xray] add a llvm-xray convert option `symbolize-no-demangle`
Enna1 via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 13 01:28:46 PDT 2021
Enna1 updated this revision to Diff 366215.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108019/new/
https://reviews.llvm.org/D108019
Files:
llvm/tools/llvm-xray/xray-converter.cpp
Index: llvm/tools/llvm-xray/xray-converter.cpp
===================================================================
--- llvm/tools/llvm-xray/xray-converter.cpp
+++ llvm/tools/llvm-xray/xray-converter.cpp
@@ -57,6 +57,11 @@
cl::init(false), cl::sub(Convert));
static cl::alias ConvertSymbolize2("y", cl::aliasopt(ConvertSymbolize),
cl::desc("Alias for -symbolize"));
+static cl::opt<bool>
+ ConvertSymbolizeNoDemangle("symbolize-no-demangle",
+ cl::desc("determines whether to demangle function name "
+ "when symbolize function ids from the input log"),
+ cl::init(false), cl::sub(Convert));
static cl::opt<std::string>
ConvertInstrMap("instr_map",
@@ -373,7 +378,10 @@
}
const auto &FunctionAddresses = Map.getFunctionAddresses();
- symbolize::LLVMSymbolizer Symbolizer;
+ symbolize::LLVMSymbolizer::Options SymbolizerOpts;
+ if (ConvertSymbolizeNoDemangle)
+ SymbolizerOpts.Demangle = false;
+ symbolize::LLVMSymbolizer Symbolizer(SymbolizerOpts);
llvm::xray::FuncIdConversionHelper FuncIdHelper(ConvertInstrMap, Symbolizer,
FunctionAddresses);
llvm::xray::TraceConverter TC(FuncIdHelper, ConvertSymbolize);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108019.366215.patch
Type: text/x-patch
Size: 1320 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210813/0bd72fdf/attachment.bin>
More information about the llvm-commits
mailing list