diff options
| author | Justin Bogner <mail@justinbogner.com> | 2014-03-21 17:24:48 +0000 |
|---|---|---|
| committer | Justin Bogner <mail@justinbogner.com> | 2014-03-21 17:24:48 +0000 |
| commit | f8d791983cfc4a86a6d1a7186aa65bfbecf4c5c5 (patch) | |
| tree | 6c24d9230524c8d8f984e849127965661a814767 /llvm/test/tools/llvm-profdata | |
| parent | d8eb29ecfd7ec7f4744bc7ea52e13bbebecea430 (diff) | |
| download | bcm5719-llvm-f8d791983cfc4a86a6d1a7186aa65bfbecf4c5c5.tar.gz bcm5719-llvm-f8d791983cfc4a86a6d1a7186aa65bfbecf4c5c5.zip | |
ProfileData: Introduce the InstrProfReader interface and a text reader
This introduces the ProfileData library and updates llvm-profdata to
use this library for reading profiles. InstrProfReader is an abstract
base class that will be subclassed for both the raw instrprof data
from compiler-rt and the efficient instrprof format that will be used
for PGO.
llvm-svn: 204482
Diffstat (limited to 'llvm/test/tools/llvm-profdata')
| -rw-r--r-- | llvm/test/tools/llvm-profdata/errors.test | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/test/tools/llvm-profdata/errors.test b/llvm/test/tools/llvm-profdata/errors.test index 219d88dd41e..afac7a4dec1 100644 --- a/llvm/test/tools/llvm-profdata/errors.test +++ b/llvm/test/tools/llvm-profdata/errors.test @@ -1,19 +1,19 @@ RUN: not llvm-profdata merge %p/Inputs/empty.profdata %p/Inputs/foo3-1.profdata 2>&1 | FileCheck %s --check-prefix=LENGTH RUN: not llvm-profdata merge %p/Inputs/foo3-1.profdata %p/Inputs/foo3bar3-1.profdata 2>&1 | FileCheck %s --check-prefix=LENGTH RUN: not llvm-profdata merge %p/Inputs/foo4-1.profdata %p/Inputs/empty.profdata 2>&1 | FileCheck %s --check-prefix=LENGTH -LENGTH: error: {{.*}}: truncated file +LENGTH: error: Number of instrumented functions differ RUN: not llvm-profdata merge %p/Inputs/foo3-1.profdata %p/Inputs/bar3-1.profdata 2>&1 | FileCheck %s --check-prefix=NAME -NAME: error: {{.*}}: function name mismatch +NAME: error: Function name mismatch, foo != bar RUN: not llvm-profdata merge %p/Inputs/foo3-1.profdata %p/Inputs/foo4-1.profdata 2>&1 | FileCheck %s --check-prefix=HASH -HASH: error: {{.*}}: function hash mismatch +HASH: error: Function hash mismatch for foo RUN: not llvm-profdata merge %p/Inputs/overflow.profdata %p/Inputs/overflow.profdata 2>&1 | FileCheck %s --check-prefix=OVERFLOW -OVERFLOW: error: {{.*}}: counter overflow +OVERFLOW: error: Counter overflow for overflow RUN: not llvm-profdata merge %p/Inputs/invalid-count-later.profdata %p/Inputs/invalid-count-later.profdata 2>&1 | FileCheck %s --check-prefix=INVALID-COUNT-LATER -INVALID-COUNT-LATER: error: {{.*}}: invalid counter +INVALID-COUNT-LATER: error: {{.*}}: Malformed profile data RUN: not llvm-profdata merge %p/Inputs/bad-hash.profdata %p/Inputs/bad-hash.profdata 2>&1 | FileCheck %s --check-prefix=BAD-HASH -BAD-HASH: error: {{.*}}: bad function hash +BAD-HASH: error: {{.*}}: Malformed profile data |

