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 | 534f14abe7888bfb2588a3789b0c1e9f1f100ad0 (patch) | |
tree | cecaf8064d1d6f44ae595f7519f02525169048a6 /clang/test/Profile/c-outdated-data.c | |
parent | fd385407faf49d28c80bacb0934e5f0f0e224cac (diff) | |
download | bcm5719-llvm-534f14abe7888bfb2588a3789b0c1e9f1f100ad0.tar.gz bcm5719-llvm-534f14abe7888bfb2588a3789b0c1e9f1f100ad0.zip |
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.
llvm-svn: 206509
Diffstat (limited to 'clang/test/Profile/c-outdated-data.c')
-rw-r--r-- | clang/test/Profile/c-outdated-data.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/Profile/c-outdated-data.c b/clang/test/Profile/c-outdated-data.c index c241005b704..d0503acdb6e 100644 --- a/clang/test/Profile/c-outdated-data.c +++ b/clang/test/Profile/c-outdated-data.c @@ -3,7 +3,8 @@ // FIXME: It would be nice to use -verify here instead of FileCheck, but -verify // doesn't play well with warnings that have no line number. -// RUN: %clang_cc1 -triple x86_64-apple-macosx10.9 -main-file-name c-outdated-data.c %s -o /dev/null -emit-llvm -fprofile-instr-use=%S/Inputs/c-outdated-data.profdata -Wprofile-instr-dropped 2>&1 | FileCheck %s +// RUN: llvm-profdata merge %S/Inputs/c-outdated-data.proftext -o %t.profdata +// RUN: %clang_cc1 -triple x86_64-apple-macosx10.9 -main-file-name c-outdated-data.c %s -o /dev/null -emit-llvm -fprofile-instr-use=%t.profdata -Wprofile-instr-dropped 2>&1 | FileCheck %s // CHECK: warning: profile data may be out of date: of 3 functions, 1 has no data and 1 has mismatched data that will be ignored void no_usable_data() { |