1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

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 9b272ef9b1
commit cc5583af00
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());