[cfe-commits] r72252 - /cfe/trunk/lib/Frontend/PCHWriter.cpp

Zhongxing Xu xuzhongxing at gmail.com
Fri May 22 01:38:41 PDT 2009


Author: zhongxingxu
Date: Fri May 22 03:38:27 2009
New Revision: 72252

URL: http://llvm.org/viewvc/llvm-project?rev=72252&view=rev
Log:
Pull EmitRecord() out of loop. It should be called only once.

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

Modified: cfe/trunk/lib/Frontend/PCHWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/PCHWriter.cpp?rev=72252&r1=72251&r2=72252&view=diff

==============================================================================
--- cfe/trunk/lib/Frontend/PCHWriter.cpp (original)
+++ cfe/trunk/lib/Frontend/PCHWriter.cpp Fri May 22 03:38:27 2009
@@ -758,8 +758,8 @@
         Record.push_back((unsigned)LE->FileKind);
         Record.push_back(LE->IncludeOffset);
       }
-      Stream.EmitRecord(pch::SM_LINE_TABLE, Record);
     }
+    Stream.EmitRecord(pch::SM_LINE_TABLE, Record);
   }
 
   // Write out entries for all of the header files we know about.





More information about the cfe-commits mailing list