summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-xray/xray-stacks.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2019-06-11 02:31:54 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2019-06-11 02:31:54 +0000
commita2048f868dd2c7b642131005a4c031722de073d6 (patch)
tree4d9216e476c10e6af62c40eb6a3d2aaf28a04d2a /llvm/tools/llvm-xray/xray-stacks.cpp
parentfc2b5c40ae48527d73e0e9a3194d26cd932bb053 (diff)
downloadbcm5719-llvm-a2048f868dd2c7b642131005a4c031722de073d6.tar.gz
bcm5719-llvm-a2048f868dd2c7b642131005a4c031722de073d6.zip
Symbolize: Replace the Options constructor with in-class initialization. NFCI.
This is not only less code but also clearer at the use site. Differential Revision: https://reviews.llvm.org/D63113 llvm-svn: 363024
Diffstat (limited to 'llvm/tools/llvm-xray/xray-stacks.cpp')
-rw-r--r--llvm/tools/llvm-xray/xray-stacks.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/tools/llvm-xray/xray-stacks.cpp b/llvm/tools/llvm-xray/xray-stacks.cpp
index 1c5838339e1..66933d059cf 100644
--- a/llvm/tools/llvm-xray/xray-stacks.cpp
+++ b/llvm/tools/llvm-xray/xray-stacks.cpp
@@ -720,9 +720,7 @@ static CommandRegistration Unused(&Stack, []() -> Error {
"-all-stacks."),
std::make_error_code(std::errc::invalid_argument));
- symbolize::LLVMSymbolizer::Options Opts(
- symbolize::FunctionNameKind::LinkageName, true, true, false, "");
- symbolize::LLVMSymbolizer Symbolizer(Opts);
+ symbolize::LLVMSymbolizer Symbolizer;
FuncIdConversionHelper FuncIdHelper(StacksInstrMap, Symbolizer,
Map.getFunctionAddresses());
// TODO: Someday, support output to files instead of just directly to
OpenPOWER on IntegriCloud