[cfe-commits] r70169 - /cfe/trunk/lib/Frontend/PCHWriter.cpp
Chris Lattner
sabre at nondot.org
Sun Apr 26 17:40:28 PDT 2009
Author: lattner
Date: Sun Apr 26 19:40:25 2009
New Revision: 70169
URL: http://llvm.org/viewvc/llvm-project?rev=70169&view=rev
Log:
drop the _ID suffixes from block names.
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=70169&r1=70168&r2=70169&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/PCHWriter.cpp (original)
+++ cfe/trunk/lib/Frontend/PCHWriter.cpp Sun Apr 26 19:40:25 2009
@@ -1355,11 +1355,11 @@
RecordData Record;
Stream.EnterSubblock(llvm::bitc::BLOCKINFO_BLOCK_ID, 3);
-#define BLOCK(X) EmitBlockID(pch::X, #X, Stream, Record)
+#define BLOCK(X) EmitBlockID(pch::X ## _ID, #X, Stream, Record)
#define RECORD(X) EmitRecordID(pch::X, #X, Stream, Record)
// PCH Top-Level Block.
- BLOCK(PCH_BLOCK_ID);
+ BLOCK(PCH_BLOCK);
RECORD(TYPE_OFFSET);
RECORD(DECL_OFFSET);
RECORD(LANGUAGE_OPTIONS);
@@ -1376,7 +1376,7 @@
RECORD(PP_COUNTER_VALUE);
// SourceManager Block.
- BLOCK(SOURCE_MANAGER_BLOCK_ID);
+ BLOCK(SOURCE_MANAGER_BLOCK);
RECORD(SM_SLOC_FILE_ENTRY);
RECORD(SM_SLOC_BUFFER_ENTRY);
RECORD(SM_SLOC_BUFFER_BLOB);
@@ -1385,13 +1385,13 @@
RECORD(SM_HEADER_FILE_INFO);
// Preprocessor Block.
- BLOCK(PREPROCESSOR_BLOCK_ID);
+ BLOCK(PREPROCESSOR_BLOCK);
RECORD(PP_MACRO_OBJECT_LIKE);
RECORD(PP_MACRO_FUNCTION_LIKE);
RECORD(PP_TOKEN);
// Types block.
- BLOCK(TYPES_BLOCK_ID);
+ BLOCK(TYPES_BLOCK);
RECORD(TYPE_EXT_QUAL);
RECORD(TYPE_FIXED_WIDTH_INT);
RECORD(TYPE_COMPLEX);
@@ -1417,7 +1417,7 @@
RECORD(TYPE_OBJC_QUALIFIED_ID);
// Decls block.
- BLOCK(DECLS_BLOCK_ID);
+ BLOCK(DECLS_BLOCK);
RECORD(DECL_ATTR);
RECORD(DECL_TRANSLATION_UNIT);
RECORD(DECL_TYPEDEF);
More information about the cfe-commits
mailing list