From 05b74bc4a64c245b8dda6b8854c6cdfc8fc29166 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231686 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../llvm-cov/Inputs/lineExecutionCounts.profdata | Bin 656 -> 0 bytes .../llvm-cov/Inputs/lineExecutionCounts.proftext | 8 ++++++++ test/tools/llvm-cov/Inputs/regionMarkers.profdata | Bin 656 -> 0 bytes test/tools/llvm-cov/Inputs/regionMarkers.proftext | 8 ++++++++ test/tools/llvm-cov/showLineExecutionCounts.cpp | 7 +++++-- test/tools/llvm-cov/showRegionMarkers.cpp | 4 +++- 6 files changed, 24 insertions(+), 3 deletions(-) delete mode 100644 test/tools/llvm-cov/Inputs/lineExecutionCounts.profdata create mode 100644 test/tools/llvm-cov/Inputs/lineExecutionCounts.proftext delete mode 100644 test/tools/llvm-cov/Inputs/regionMarkers.profdata create mode 100644 test/tools/llvm-cov/Inputs/regionMarkers.proftext diff --git a/test/tools/llvm-cov/Inputs/lineExecutionCounts.profdata b/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