[llvm] r343864 - Format the dwarfdump --statistics version as an integer instead of a string.
Adrian Prantl via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 5 10:41:30 PDT 2018
Author: adrian
Date: Fri Oct 5 10:41:30 2018
New Revision: 343864
URL: http://llvm.org/viewvc/llvm-project?rev=343864&view=rev
Log:
Format the dwarfdump --statistics version as an integer instead of a string.
Modified:
llvm/trunk/test/tools/llvm-dwarfdump/X86/statistics.ll
llvm/trunk/tools/llvm-dwarfdump/Statistics.cpp
Modified: llvm/trunk/test/tools/llvm-dwarfdump/X86/statistics.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-dwarfdump/X86/statistics.ll?rev=343864&r1=343863&r2=343864&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-dwarfdump/X86/statistics.ll (original)
+++ llvm/trunk/test/tools/llvm-dwarfdump/X86/statistics.ll Fri Oct 5 10:41:30 2018
@@ -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;
Modified: llvm/trunk/tools/llvm-dwarfdump/Statistics.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-dwarfdump/Statistics.cpp?rev=343864&r1=343863&r2=343864&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-dwarfdump/Statistics.cpp (original)
+++ llvm/trunk/tools/llvm-dwarfdump/Statistics.cpp Fri Oct 5 10:41:30 2018
@@ -250,7 +250,7 @@ bool collectStatsForObjectFile(ObjectFil
// 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());
More information about the llvm-commits
mailing list