diff options
author | Justin Bogner <mail@justinbogner.com> | 2014-04-17 22:49:06 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2014-04-17 22:49:06 +0000 |
commit | dea85f9d241126f844cc46d4e91e7755c8e1851c (patch) | |
tree | f1c9032f718b0708d5a0fc79d95ade300141d895 /test/Profile/cxx-class.cpp | |
parent | c911bf1a4ad6146dfb8c91410db219c582172c44 (diff) | |
download | clang-dea85f9d241126f844cc46d4e91e7755c8e1851c.tar.gz |
test: Use llvm-profdata merge in Profile tests
In preparation for using a binary format for instrumentation based
profiling, explicitly treat the test inputs as text and transform them
before running. This will allow us to leave the checked in files in
human readable format once the instrumentation format is binary.
No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206509 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Profile/cxx-class.cpp')
-rw-r--r-- | test/Profile/cxx-class.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/Profile/cxx-class.cpp b/test/Profile/cxx-class.cpp index 7cbbc09610..1a0c84bdcc 100644 --- a/test/Profile/cxx-class.cpp +++ b/test/Profile/cxx-class.cpp @@ -6,7 +6,8 @@ // RUN: FileCheck --input-file=%tgen -check-prefix=MTHGEN %s // RUN: FileCheck --input-file=%tgen -check-prefix=WRPGEN %s -// RUN: %clang %s -o - -emit-llvm -S -fprofile-instr-use=%S/Inputs/cxx-class.profdata -fno-exceptions -target %itanium_abi_triple > %tuse +// RUN: llvm-profdata merge %S/Inputs/cxx-class.proftext -o %t.profdata +// RUN: %clang %s -o - -emit-llvm -S -fprofile-instr-use=%t.profdata -fno-exceptions -target %itanium_abi_triple > %tuse // RUN: FileCheck --input-file=%tuse -check-prefix=CTRUSE %s // RUN: FileCheck --input-file=%tuse -check-prefix=DTRUSE %s // RUN: FileCheck --input-file=%tuse -check-prefix=MTHUSE %s |