r179529 - Use llvm::sys::IsBigEndianHost.
Rafael Espindola
rafael.espindola at gmail.com
Mon Apr 15 08:10:35 PDT 2013
Author: rafael
Date: Mon Apr 15 10:10:35 2013
New Revision: 179529
URL: http://llvm.org/viewvc/llvm-project?rev=179529&view=rev
Log:
Use llvm::sys::IsBigEndianHost.
Modified:
cfe/trunk/include/clang/Basic/OnDiskHashTable.h
Modified: cfe/trunk/include/clang/Basic/OnDiskHashTable.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/OnDiskHashTable.h?rev=179529&r1=179528&r2=179529&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/OnDiskHashTable.h (original)
+++ cfe/trunk/include/clang/Basic/OnDiskHashTable.h Mon Apr 15 10:10:35 2013
@@ -103,7 +103,7 @@ inline uint32_t ReadLE32(const unsigned
// Hosts that directly support little-endian 32-bit loads can just
// use them. Big-endian hosts need a bswap.
uint32_t V = *((const uint32_t*)Data);
- if (llvm::sys::isBigEndianHost())
+ if (llvm::sys::IsBigEndianHost)
V = llvm::ByteSwap_32(V);
Data += 4;
return V;
More information about the cfe-commits
mailing list