Skip to content

Commit 39f2fbd

Browse files
committed
Undefine correct macro
llvm-svn: 97920
1 parent 0a65574 commit 39f2fbd

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

clang/lib/Frontend/PCHReader.cpp

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ PCHValidator::ReadLanguageOptions(const LangOptions &LangOpts) {
120120
PARSE_LANGOPT_IMPORTANT(OpenCL, diag::warn_pch_opencl);
121121
PARSE_LANGOPT_BENIGN(CatchUndefined);
122122
PARSE_LANGOPT_IMPORTANT(ElideConstructors, diag::warn_pch_elide_constructors);
123-
#undef PARSE_LANGOPT_IRRELEVANT
123+
#undef PARSE_LANGOPT_IMPORTANT
124124
#undef PARSE_LANGOPT_BENIGN
125125

126126
return false;
@@ -1089,13 +1089,13 @@ void PCHReader::ReadDefinedMacros() {
10891089
// If there was no preprocessor block, do nothing.
10901090
if (!MacroCursor.getBitStreamReader())
10911091
return;
1092-
1092+
10931093
llvm::BitstreamCursor Cursor = MacroCursor;
10941094
if (Cursor.EnterSubBlock(pch::PREPROCESSOR_BLOCK_ID)) {
10951095
Error("malformed preprocessor block record in PCH file");
10961096
return;
10971097
}
1098-
1098+
10991099
RecordData Record;
11001100
while (true) {
11011101
unsigned Code = Cursor.ReadCode();
@@ -1104,7 +1104,7 @@ void PCHReader::ReadDefinedMacros() {
11041104
Error("error at end of preprocessor block in PCH file");
11051105
return;
11061106
}
1107-
1107+
11081108
if (Code == llvm::bitc::ENTER_SUBBLOCK) {
11091109
// No known subblocks, always skip them.
11101110
Cursor.ReadSubBlockID();
@@ -1114,20 +1114,20 @@ void PCHReader::ReadDefinedMacros() {
11141114
}
11151115
continue;
11161116
}
1117-
1117+
11181118
if (Code == llvm::bitc::DEFINE_ABBREV) {
11191119
Cursor.ReadAbbrevRecord();
11201120
continue;
11211121
}
1122-
1122+
11231123
// Read a record.
11241124
const char *BlobStart;
11251125
unsigned BlobLen;
11261126
Record.clear();
11271127
switch (Cursor.ReadRecord(Code, Record, &BlobStart, &BlobLen)) {
11281128
default: // Default behavior: ignore.
11291129
break;
1130-
1130+
11311131
case pch::PP_MACRO_OBJECT_LIKE:
11321132
case pch::PP_MACRO_FUNCTION_LIKE:
11331133
DecodeIdentifierInfo(Record[0]);
@@ -1339,7 +1339,7 @@ PCHReader::ReadPCHBlock() {
13391339
}
13401340
UnusedStaticFuncs.swap(Record);
13411341
break;
1342-
1342+
13431343
case pch::LOCALLY_SCOPED_EXTERNAL_DECLS:
13441344
if (!LocallyScopedExternalDecls.empty()) {
13451345
Error("duplicate LOCALLY_SCOPED_EXTERNAL_DECLS record in PCH file");
@@ -1385,15 +1385,15 @@ PCHReader::ReadPCHBlock() {
13851385
break;
13861386

13871387
case pch::STAT_CACHE: {
1388-
PCHStatCache *MyStatCache =
1388+
PCHStatCache *MyStatCache =
13891389
new PCHStatCache((const unsigned char *)BlobStart + Record[0],
13901390
(const unsigned char *)BlobStart,
13911391
NumStatHits, NumStatMisses);
13921392
FileMgr.addStatCache(MyStatCache);
13931393
StatCache = MyStatCache;
13941394
break;
13951395
}
1396-
1396+
13971397
case pch::EXT_VECTOR_DECLS:
13981398
if (!ExtVectorDecls.empty()) {
13991399
Error("duplicate EXT_VECTOR_DECLS record in PCH file");
@@ -1412,7 +1412,7 @@ PCHReader::ReadPCHBlock() {
14121412
Comments = (SourceRange *)BlobStart;
14131413
NumComments = BlobLen / sizeof(SourceRange);
14141414
break;
1415-
1415+
14161416
case pch::VERSION_CONTROL_BRANCH_REVISION: {
14171417
const std::string &CurBranch = getClangFullRepositoryVersion();
14181418
llvm::StringRef PCHBranch(BlobStart, BlobLen);
@@ -1561,7 +1561,7 @@ void PCHReader::InitializeContext(ASTContext &Ctx) {
15611561
PP->getIdentifierTable().setExternalIdentifierLookup(this);
15621562
PP->getHeaderSearchInfo().SetExternalLookup(this);
15631563
PP->setExternalSource(this);
1564-
1564+
15651565
// Load the translation unit declaration
15661566
ReadDeclRecord(DeclOffsets[0], 0);
15671567

@@ -2271,7 +2271,7 @@ PCHReader::GetTemplateArgumentLocInfo(TemplateArgument::ArgKind Kind,
22712271
case TemplateArgument::Type:
22722272
return GetTypeSourceInfo(Record, Index);
22732273
case TemplateArgument::Template: {
2274-
SourceLocation
2274+
SourceLocation
22752275
QualStart = SourceLocation::getFromRawEncoding(Record[Index++]),
22762276
QualEnd = SourceLocation::getFromRawEncoding(Record[Index++]),
22772277
TemplateNameLoc = SourceLocation::getFromRawEncoding(Record[Index++]);
@@ -2487,7 +2487,7 @@ void PCHReader::InitializeSema(Sema &S) {
24872487
VarDecl *Var = cast<VarDecl>(GetDecl(TentativeDefinitions[I]));
24882488
SemaObj->TentativeDefinitions.push_back(Var);
24892489
}
2490-
2490+
24912491
// If there were any unused static functions, deserialize them and add to
24922492
// Sema's list of unused static functions.
24932493
for (unsigned I = 0, N = UnusedStaticFuncs.size(); I != N; ++I) {

0 commit comments

Comments
 (0)