Format the dwarfdump --statistics version as an integer instead of a string.

llvm-svn: 343864
This commit is contained in:
Adrian Prantl 2018-10-05 17:41:30 +00:00
parent 8858fa8552
commit 7875142b5c
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
; RUN: llc -O0 %s -o - -filetype=obj \
; RUN: | llvm-dwarfdump -statistics - | FileCheck %s
; CHECK: "version":1
; int GlobalConst = 42;
; int Global;

View File

@ -250,7 +250,7 @@ bool collectStatsForObjectFile(ObjectFile &Obj, DWARFContext &DICtx,
// Print summary.
OS.SetBufferSize(1024);
OS << "{\"version\":\"" << Version << '"';
OS << "{\"version\":" << Version;
LLVM_DEBUG(llvm::dbgs() << "Variable location quality metrics\n";
llvm::dbgs() << "---------------------------------\n");
printDatum(OS, "file", Filename.str());