From 24ee64ba87ae691ebdb6eb6b7ddb4207970bdf3c Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Mon, 9 Mar 2015 18:54:58 +0000 Subject: [PATCH] InstrProf: Use the proftext format for these coverage tests This format's easier to understand and update by hand. llvm-svn: 231686 --- .../tools/llvm-cov/Inputs/lineExecutionCounts.profdata | Bin 656 -> 0 bytes .../tools/llvm-cov/Inputs/lineExecutionCounts.proftext | 8 ++++++++ llvm/test/tools/llvm-cov/Inputs/regionMarkers.profdata | Bin 656 -> 0 bytes llvm/test/tools/llvm-cov/Inputs/regionMarkers.proftext | 8 ++++++++ llvm/test/tools/llvm-cov/showLineExecutionCounts.cpp | 7 +++++-- llvm/test/tools/llvm-cov/showRegionMarkers.cpp | 4 +++- 6 files changed, 24 insertions(+), 3 deletions(-) delete mode 100644 llvm/test/tools/llvm-cov/Inputs/lineExecutionCounts.profdata create mode 100644 llvm/test/tools/llvm-cov/Inputs/lineExecutionCounts.proftext delete mode 100644 llvm/test/tools/llvm-cov/Inputs/regionMarkers.profdata create mode 100644 llvm/test/tools/llvm-cov/Inputs/regionMarkers.proftext diff --git a/llvm/test/tools/llvm-cov/Inputs/lineExecutionCounts.profdata b/llvm/test/tools/llvm-cov/Inputs/lineExecutionCounts.profdata deleted file mode 100644 index 87122272396706d6506a56a1c65d66c7501553ac..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 656 zcmeyLQ&5zjmf6U}00E3p8b&oh8H^0SuJ%4ROPP9`1u9|zrE?QA^L(8(z&uvCYA6Fr ZrQi@}U~s@G1C&1 | FileCheck %s +// RUN: llvm-profdata merge %S/Inputs/regionMarkers.proftext -o %t.profdata int main() { // CHECK: Marker at [[@LINE]]:12 = 1 int x = 0; @@ -22,5 +22,7 @@ int main() { // CHECK: Marker at [[@LINE]]:12 = 1 return 0; } +// RUN: llvm-cov show %S/Inputs/regionMarkers.covmapping -instr-profile %t.profdata -show-regions -dump -filename-equivalence %s 2>&1 | FileCheck %s + // llvm-cov doesn't work on big endian yet // XFAIL: powerpc64-, s390x, mips-, mips64-, sparc -- 2.7.4