summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2018-11-26 21:48:45 +0000
committerVitaly Buka <vitalybuka@google.com>2018-11-26 21:48:45 +0000
commitdb87ced890a6f949895ddbd233d752dfed5a65c2 (patch)
tree2f1ee0d9417af8fcffb913e323fc501a03f3769f /llvm/tools
parent6a38a5effe5ba309c5c1b38b4b7134cfdf6cb64c (diff)
downloadbcm5719-llvm-db87ced890a6f949895ddbd233d752dfed5a65c2.tar.gz
bcm5719-llvm-db87ced890a6f949895ddbd233d752dfed5a65c2.zip
[cfi] Make sanstats print address of the check
Summary: Help with off-line symbolization or other type debugging. Reviewers: pcc Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D53606 llvm-svn: 347600
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/sanstats/sanstats.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/tools/sanstats/sanstats.cpp b/llvm/tools/sanstats/sanstats.cpp
index 71f0207bab5..214aeeab5ab 100644
--- a/llvm/tools/sanstats/sanstats.cpp
+++ b/llvm/tools/sanstats/sanstats.cpp
@@ -81,8 +81,9 @@ const char *ReadModule(char SizeofPtr, const char *Begin, const char *End) {
// remove one from the address to get the correct DI.
if (Expected<DILineInfo> LineInfo =
Symbolizer.symbolizeCode(Filename, Addr - 1)) {
- llvm::outs() << LineInfo->FileName << ':' << LineInfo->Line << ' '
- << LineInfo->FunctionName << ' ';
+ llvm::outs() << format_hex(Addr - 1, 18) << ' ' << LineInfo->FileName
+ << ':' << LineInfo->Line << ' ' << LineInfo->FunctionName
+ << ' ';
} else {
logAllUnhandledErrors(LineInfo.takeError(), llvm::outs(), "<error> ");
}
OpenPOWER on IntegriCloud