diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-03-23 03:38:12 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-03-23 03:38:12 +0000 |
commit | 0695b20d9adb555b89eb4e095ce377ff8ae04eee (patch) | |
tree | 7d7f2039958ff9ee9c384d932354d5c03908e041 /lib/Transforms/IPO | |
parent | 4ff2dadebed5b428689bb6651b8f83688ce2d934 (diff) | |
download | llvm-0695b20d9adb555b89eb4e095ce377ff8ae04eee.tar.gz llvm-0695b20d9adb555b89eb4e095ce377ff8ae04eee.tar.bz2 llvm-0695b20d9adb555b89eb4e095ce377ff8ae04eee.tar.xz |
InstrProf: Check pointer size in raw profile
Since the profile can come from 32-bit machines, we need to check the
pointer size. Change the magic number to facilitate this.
Adds tests for reading 32-bit and 64-bit binaries (both big- and
little-endian). The tests write a binary using printf in RUN lines
(like raw-magic-but-no-header.test). Assuming the bots don't complain,
this seems like a better way forward for testing RawInstrProfReader than
committing binary files.
<rdar://problem/16400648>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204557 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO')
0 files changed, 0 insertions, 0 deletions