1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/lib/ProfileData
Duncan P. N. Exon Smith 5b4570b273 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>

llvm-svn: 204557
2014-03-23 03:38:12 +00:00
..
CMakeLists.txt [CMake] LLVMProfileData: No need to add LINK_LIBS here. LLVMBuild should do. 2014-03-23 01:23:36 +00:00
InstrProf.cpp InstrProf: Actually detect bad headers 2014-03-21 20:42:28 +00:00
InstrProfReader.cpp InstrProf: Check pointer size in raw profile 2014-03-23 03:38:12 +00:00
InstrProfWriter.cpp ProfileData: Avoid brace initialization, windows doesn't like it 2014-03-21 18:22:16 +00:00
LLVMBuild.txt
Makefile