aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend/PCHWriter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-10 17:16:57 +0000
committerChris Lattner <sabre@nondot.org>2009-04-10 17:16:57 +0000
commitf04ad69fed38d26fc0d6f7d6fd0a4631ddfbc7fe (patch)
tree5f0fab7ea3d0c04f73f8579701ae45e739a70ffe /lib/Frontend/PCHWriter.cpp
parent0b1fb988012da21d996c43e36867787a7a07b889 (diff)
improve punctuation
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68791 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/PCHWriter.cpp')
-rw-r--r--lib/Frontend/PCHWriter.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/lib/Frontend/PCHWriter.cpp b/lib/Frontend/PCHWriter.cpp
index b60fc2f4b6..1986b5945f 100644
--- a/lib/Frontend/PCHWriter.cpp
+++ b/lib/Frontend/PCHWriter.cpp
@@ -392,7 +392,7 @@ static unsigned CreateSLocInstantiationAbbrev(llvm::BitstreamWriter &S) {
/// 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 @@ void PCHWriter::WriteSourceManagerBlock(SourceManager &SourceMgr) {
/// 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 @@ void PCHWriter::WriteType(const Type *T) {
/// \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 @@ uint64_t PCHWriter::WriteDeclContextVisibleBlock(ASTContext &Context,
/// \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.