mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 03:24:09 +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:
@ -21,7 +21,7 @@ static T getU(uint32_t *offset_ptr, const DataExtractor *de,
|
||||
if (de->isValidOffsetForDataOfSize(offset, sizeof(val))) {
|
||||
std::memcpy(&val, &Data[offset], sizeof(val));
|
||||
if (sys::IsLittleEndianHost != isLittleEndian)
|
||||
val = sys::SwapByteOrder(val);
|
||||
val = sys::getSwappedBytes(val);
|
||||
|
||||
// Advance the offset
|
||||
*offset_ptr += sizeof(val);
|
||||
|
Reference in New Issue
Block a user