Renaming SwapByteOrder() to getSwappedBytes()

The next commit will add swapByteOrder(), acting in-place

llvm-svn: 210973
This commit is contained in:
Artyom Skrobov
2014-06-14 11:36:01 +00:00
parent 06aebc4d69
commit ef5e867f16
11 changed files with 55 additions and 55 deletions

View File

@@ -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);