mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-27 12:26:08 +00:00
Renaming SwapByteOrder() to getSwappedBytes()
The next commit will add swapByteOrder(), acting in-place git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210973 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -158,7 +158,7 @@ bool RawInstrProfReader<IntPtrT>::hasFormat(const MemoryBuffer &DataBuffer) {
|
||||
uint64_t Magic =
|
||||
*reinterpret_cast<const uint64_t *>(DataBuffer.getBufferStart());
|
||||
return getRawMagic<IntPtrT>() == Magic ||
|
||||
sys::SwapByteOrder(getRawMagic<IntPtrT>()) == Magic;
|
||||
sys::getSwappedBytes(getRawMagic<IntPtrT>()) == Magic;
|
||||
}
|
||||
|
||||
template <class IntPtrT>
|
||||
|
Reference in New Issue
Block a user