[cfe-commits] r98816 - /cfe/trunk/lib/Frontend/CacheTokens.cpp

Kovarththanan Rajaratnam kovarththanan.rajaratnam at gmail.com
Thu Mar 18 00:18:11 PDT 2010


Author: krj
Date: Thu Mar 18 02:18:10 2010
New Revision: 98816

URL: http://llvm.org/viewvc/llvm-project?rev=98816&view=rev
Log:
Rename variable to indicate what it is being used for

Modified:
    cfe/trunk/lib/Frontend/CacheTokens.cpp

Modified: cfe/trunk/lib/Frontend/CacheTokens.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/CacheTokens.cpp?rev=98816&r1=98815&r2=98816&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/CacheTokens.cpp (original)
+++ cfe/trunk/lib/Frontend/CacheTokens.cpp Thu Mar 18 02:18:10 2010
@@ -272,7 +272,7 @@
   // Pad 0's so that we emit tokens to a 4-byte alignment.
   // This speed up reading them back in.
   Pad(Out, 4);
-  Offset off = (Offset) Out.tell();
+  Offset TokenOff = (Offset) Out.tell();
 
   // Keep track of matching '#if' ... '#endif'.
   typedef std::vector<std::pair<Offset, unsigned> > PPCondTable;
@@ -418,7 +418,7 @@
   Emit32(PPCond.size());
 
   for (unsigned i = 0, e = PPCond.size(); i!=e; ++i) {
-    Emit32(PPCond[i].first - off);
+    Emit32(PPCond[i].first - TokenOff);
     uint32_t x = PPCond[i].second;
     assert(x != 0 && "PPCond entry not backpatched.");
     // Emit zero for #endifs.  This allows us to do checking when
@@ -426,7 +426,7 @@
     Emit32(x == i ? 0 : x);
   }
 
-  return PTHEntry(off, PPCondOff);
+  return PTHEntry(TokenOff, PPCondOff);
 }
 
 Offset PTHWriter::EmitCachedSpellings() {
@@ -452,7 +452,7 @@
 
   // Write the name of the MainFile.
   if (!MainFile.empty()) {
-  	EmitString(MainFile);
+    EmitString(MainFile);
   } else {
     // String with 0 bytes.
     Emit16(0);





More information about the cfe-commits mailing list