summaryrefslogtreecommitdiff
path: root/test/profile/instrprof-override-filename-with-env.c
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2016-07-21 23:19:18 +0000
committerXinliang David Li <davidxl@google.com>2016-07-21 23:19:18 +0000
commit1b003f1ad835271b92563f0e30fc0e56de97dd61 (patch)
tree754c0df17035b3338850787ff3c7601947abc58c /test/profile/instrprof-override-filename-with-env.c
parent3fceb3a83f47d74bd05be1d197dea263241d4722 (diff)
[Profile] deprecate __llvm_profile_override_default_filename (part2)
This eliminates unncessary calls and init functions. Differential Revision: http://reviews.llvm.org/D22614 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@276355 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/profile/instrprof-override-filename-with-env.c')
-rw-r--r--test/profile/instrprof-override-filename-with-env.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/profile/instrprof-override-filename-with-env.c b/test/profile/instrprof-override-filename-with-env.c
index cce838916..3f4e5c8d2 100644
--- a/test/profile/instrprof-override-filename-with-env.c
+++ b/test/profile/instrprof-override-filename-with-env.c
@@ -1,14 +1,14 @@
-// RUN: %clang_profgen -o %t -O3 %s
+// RUN: %clang_profgen=%t.bad.profraw -o %t -O3 %s
// RUN: env LLVM_PROFILE_FILE=%t.good.profraw %run %t %t.bad.profraw
// RUN: llvm-profdata merge -o %t.profdata %t.good.profraw
// RUN: %clang_profuse=%t.profdata -o - -S -emit-llvm %s | FileCheck %s
-void __llvm_profile_override_default_filename(const char *);
+void bar () {}
int main(int argc, const char *argv[]) {
// CHECK: br i1 %{{.*}}, label %{{.*}}, label %{{.*}}, !prof ![[PD1:[0-9]+]]
if (argc < 2)
return 1;
- __llvm_profile_override_default_filename(argv[1]);
+ bar();
return 0;
}
// CHECK: ![[PD1]] = !{!"branch_weights", i32 1, i32 2}