From fbad5bd6910ae387588281f8cd518540832df391 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Tue, 31 Jan 2017 22:19:38 +0000 Subject: Add a verbose/human readable mode to llvm-symbolizer to investigate discriminators and other line table/backtrace features Patch by Simon Que! Differential Revision: https://reviews.llvm.org/D29094 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293697 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-symbolizer/llvm-symbolizer.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tools/llvm-symbolizer') diff --git a/tools/llvm-symbolizer/llvm-symbolizer.cpp b/tools/llvm-symbolizer/llvm-symbolizer.cpp index fc37dea4c484..c9e0cc2b3b05 100644 --- a/tools/llvm-symbolizer/llvm-symbolizer.cpp +++ b/tools/llvm-symbolizer/llvm-symbolizer.cpp @@ -85,6 +85,9 @@ static cl::opt ClPrintSourceContextLines( "print-source-context-lines", cl::init(0), cl::desc("Print N number of source file context")); +static cl::opt ClVerbose("verbose", cl::init(false), + cl::desc("Print verbose line info")); + template static bool error(Expected &ResOrErr) { if (ResOrErr) @@ -160,7 +163,7 @@ int main(int argc, char **argv) { LLVMSymbolizer Symbolizer(Opts); DIPrinter Printer(outs(), ClPrintFunctions != FunctionNameKind::None, - ClPrettyPrint, ClPrintSourceContextLines); + ClPrettyPrint, ClPrintSourceContextLines, ClVerbose); const int kMaxInputStringLength = 1024; char InputString[kMaxInputStringLength]; -- cgit v1.2.1