summaryrefslogtreecommitdiff
path: root/test/profile/instrprof-value-prof.test
diff options
context:
space:
mode:
authorSean Silva <chisophugis@gmail.com>2016-03-28 22:23:03 +0000
committerSean Silva <chisophugis@gmail.com>2016-03-28 22:23:03 +0000
commit5fc5f79cb87058f5ed4d79a1d373b2ce9186ade1 (patch)
tree9e1798bb16cd47d80fe9d48c2a5719e552a93097 /test/profile/instrprof-value-prof.test
parentbbde6a2ef6e0f0930fb3c85ced51cdaec17ec5a2 (diff)
[libprofile] Use one fewer -mllvm option in this test.
AFAIK there is still no way to avoid `-mllvm -disable-vp=false` currently. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@264682 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/profile/instrprof-value-prof.test')
-rw-r--r--test/profile/instrprof-value-prof.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/profile/instrprof-value-prof.test b/test/profile/instrprof-value-prof.test
index 7ebeff37b..4040ef367 100644
--- a/test/profile/instrprof-value-prof.test
+++ b/test/profile/instrprof-value-prof.test
@@ -4,8 +4,8 @@
// RUN: llvm-profdata show --all-functions -ic-targets %t.profdata | FileCheck %S/Inputs/instrprof-value-prof-real.c
// do two step build before the clang option is ready
-// RUN: %clang -O2 -mllvm -disable-vp=false -mllvm -profile-generate=%t.ir.profraw -c -o %t.ir.o %S/Inputs/instrprof-value-prof-real.c
+// RUN: %clang -O2 -mllvm -disable-vp=false -Xclang -fprofile-instrument=llvm -c -o %t.ir.o %S/Inputs/instrprof-value-prof-real.c
// RUN: %clang_profgen -O2 -o %t.ir %t.ir.o
-// RUN: %run %t.ir
+// RUN: env LLVM_PROFILE_FILE=%t.ir.profraw %run %t.ir
// RUN: llvm-profdata merge -o %t.ir.profdata %t.ir.profraw
// RUN: llvm-profdata show --all-functions -ic-targets %t.ir.profdata | FileCheck %S/Inputs/instrprof-value-prof-real.c