[cfe-commits] r97569 - in /cfe/trunk: include/clang/Basic/OnDiskHashTable.h lib/Frontend/CacheTokens.cpp
Kovarththanan Rajaratnam
kovarththanan.rajaratnam at gmail.com
Tue Mar 2 09:41:26 PST 2010
Author: krj
Date: Tue Mar 2 11:41:26 2010
New Revision: 97569
URL: http://llvm.org/viewvc/llvm-project?rev=97569&view=rev
Log:
Move Emit24 to clang::io
Modified:
cfe/trunk/include/clang/Basic/OnDiskHashTable.h
cfe/trunk/lib/Frontend/CacheTokens.cpp
Modified: cfe/trunk/include/clang/Basic/OnDiskHashTable.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/OnDiskHashTable.h?rev=97569&r1=97568&r2=97569&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/OnDiskHashTable.h (original)
+++ cfe/trunk/include/clang/Basic/OnDiskHashTable.h Tue Mar 2 11:41:26 2010
@@ -38,6 +38,13 @@
assert((V >> 16) == 0);
}
+inline void Emit24(llvm::raw_ostream& Out, uint32_t V) {
+ Out << (unsigned char)(V);
+ Out << (unsigned char)(V >> 8);
+ Out << (unsigned char)(V >> 16);
+ assert((V >> 24) == 0);
+}
+
inline void Emit32(llvm::raw_ostream& Out, uint32_t V) {
Out << (unsigned char)(V);
Out << (unsigned char)(V >> 8);
Modified: cfe/trunk/lib/Frontend/CacheTokens.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/CacheTokens.cpp?rev=97569&r1=97568&r2=97569&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/CacheTokens.cpp (original)
+++ cfe/trunk/lib/Frontend/CacheTokens.cpp Tue Mar 2 11:41:26 2010
@@ -190,12 +190,7 @@
void Emit16(uint32_t V) { ::Emit16(Out, V); }
- void Emit24(uint32_t V) {
- Out << (unsigned char)(V);
- Out << (unsigned char)(V >> 8);
- Out << (unsigned char)(V >> 16);
- assert((V >> 24) == 0);
- }
+ void Emit24(uint32_t V) { ::Emit24(Out, V); }
void Emit32(uint32_t V) { ::Emit32(Out, V); }
More information about the cfe-commits
mailing list