mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-18 11:24:01 +00:00
InstrProf: Change magic number to have non-text characters
Include non-text characters in the magic number so that text files can't match. <rdar://problem/15950346> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204513 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -90,14 +90,14 @@ RawInstrProfReader::RawInstrProfReader(std::unique_ptr<MemoryBuffer> DataBuffer)
|
||||
|
||||
static uint64_t getRawMagic() {
|
||||
return
|
||||
uint64_t('l') << 56 |
|
||||
uint64_t('p') << 48 |
|
||||
uint64_t('r') << 40 |
|
||||
uint64_t('o') << 32 |
|
||||
uint64_t('f') << 24 |
|
||||
uint64_t('r') << 16 |
|
||||
uint64_t('a') << 8 |
|
||||
uint64_t('w');
|
||||
uint64_t(255) << 56 |
|
||||
uint64_t('l') << 48 |
|
||||
uint64_t('p') << 40 |
|
||||
uint64_t('r') << 32 |
|
||||
uint64_t('o') << 24 |
|
||||
uint64_t('f') << 16 |
|
||||
uint64_t('r') << 8 |
|
||||
uint64_t(129);
|
||||
}
|
||||
|
||||
bool RawInstrProfReader::hasFormat(const MemoryBuffer &DataBuffer) {
|
||||
|
Reference in New Issue
Block a user