[llvm-reaobj] Display COFF-specific sections/tables only if the object is COFF.
[oota-llvm.git] / lib / Support / DataExtractor.cpp
index 7b829215d29b963d2ef250c8f461e9c73c16edfd..5d6d60a87fbfa2af12a2cdbfcb5f884f0fa8719b 100644 (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);
+      sys::swapByteOrder(val);
 
     // Advance the offset
     *offset_ptr += sizeof(val);