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

Chris Lattner sabre at nondot.org
Fri Apr 10 10:16:58 PDT 2009


Author: lattner
Date: Fri Apr 10 12:16:57 2009
New Revision: 68791

URL: http://llvm.org/viewvc/llvm-project?rev=68791&view=rev
Log:
improve punctuation

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=68791&r1=68790&r2=68791&view=diff

==============================================================================
--- cfe/trunk/lib/Frontend/PCHWriter.cpp (original)
+++ cfe/trunk/lib/Frontend/PCHWriter.cpp Fri Apr 10 12:16:57 2009
@@ -392,7 +392,7 @@
 /// errors), we probably won't have to create file entries for any of
 /// the files in the AST.
 void PCHWriter::WriteSourceManagerBlock(SourceManager &SourceMgr) {
-  // Enter the types block
+  // Enter the source manager block.
   S.EnterSubblock(pch::SOURCE_MANAGER_BLOCK_ID, 3);
 
   // Abbreviations for the various kinds of source-location entries.
@@ -478,13 +478,20 @@
 /// preprocessor.
 ///
 void PCHWriter::WritePreprocessor(Preprocessor &PP) {
+  // Enter the preprocessor block.
+  S.EnterSubblock(pch::PREPROCESSOR_BLOCK_ID, 3);
+  
+  
+
+  
+  S.ExitBlock();
 }
 
 
 /// \brief Write the representation of a type to the PCH stream.
 void PCHWriter::WriteType(const Type *T) {
   pch::ID &ID = TypeIDs[T];
-  if (ID == 0) // we haven't seen this type before
+  if (ID == 0) // we haven't seen this type before.
     ID = NextTypeID++;
   
   // Record the offset for this type.
@@ -523,7 +530,7 @@
 
 /// \brief Write a block containing all of the types.
 void PCHWriter::WriteTypesBlock(ASTContext &Context) {
-  // Enter the types block
+  // Enter the types block.
   S.EnterSubblock(pch::TYPES_BLOCK_ID, 2);
 
   // Emit all of the types in the ASTContext
@@ -606,7 +613,7 @@
 
 /// \brief Write a block containing all of the declarations.
 void PCHWriter::WriteDeclsBlock(ASTContext &Context) {
-  // Enter the declarations block
+  // Enter the declarations block.
   S.EnterSubblock(pch::DECLS_BLOCK_ID, 2);
 
   // Emit all of the declarations.





More information about the cfe-commits mailing list