summaryrefslogtreecommitdiffstats
path: root/llvm/tools/sanstats/sanstats.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/sanstats/sanstats.cpp')
-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