@@ -120,7 +120,7 @@ PCHValidator::ReadLanguageOptions(const LangOptions &LangOpts) {
120
120
PARSE_LANGOPT_IMPORTANT (OpenCL, diag::warn_pch_opencl);
121
121
PARSE_LANGOPT_BENIGN (CatchUndefined);
122
122
PARSE_LANGOPT_IMPORTANT (ElideConstructors, diag::warn_pch_elide_constructors);
123
- #undef PARSE_LANGOPT_IRRELEVANT
123
+ #undef PARSE_LANGOPT_IMPORTANT
124
124
#undef PARSE_LANGOPT_BENIGN
125
125
126
126
return false ;
@@ -1089,13 +1089,13 @@ void PCHReader::ReadDefinedMacros() {
1089
1089
// If there was no preprocessor block, do nothing.
1090
1090
if (!MacroCursor.getBitStreamReader ())
1091
1091
return ;
1092
-
1092
+
1093
1093
llvm::BitstreamCursor Cursor = MacroCursor;
1094
1094
if (Cursor.EnterSubBlock (pch::PREPROCESSOR_BLOCK_ID)) {
1095
1095
Error (" malformed preprocessor block record in PCH file" );
1096
1096
return ;
1097
1097
}
1098
-
1098
+
1099
1099
RecordData Record;
1100
1100
while (true ) {
1101
1101
unsigned Code = Cursor.ReadCode ();
@@ -1104,7 +1104,7 @@ void PCHReader::ReadDefinedMacros() {
1104
1104
Error (" error at end of preprocessor block in PCH file" );
1105
1105
return ;
1106
1106
}
1107
-
1107
+
1108
1108
if (Code == llvm::bitc::ENTER_SUBBLOCK) {
1109
1109
// No known subblocks, always skip them.
1110
1110
Cursor.ReadSubBlockID ();
@@ -1114,20 +1114,20 @@ void PCHReader::ReadDefinedMacros() {
1114
1114
}
1115
1115
continue ;
1116
1116
}
1117
-
1117
+
1118
1118
if (Code == llvm::bitc::DEFINE_ABBREV) {
1119
1119
Cursor.ReadAbbrevRecord ();
1120
1120
continue ;
1121
1121
}
1122
-
1122
+
1123
1123
// Read a record.
1124
1124
const char *BlobStart;
1125
1125
unsigned BlobLen;
1126
1126
Record.clear ();
1127
1127
switch (Cursor.ReadRecord (Code, Record, &BlobStart, &BlobLen)) {
1128
1128
default : // Default behavior: ignore.
1129
1129
break ;
1130
-
1130
+
1131
1131
case pch::PP_MACRO_OBJECT_LIKE:
1132
1132
case pch::PP_MACRO_FUNCTION_LIKE:
1133
1133
DecodeIdentifierInfo (Record[0 ]);
@@ -1339,7 +1339,7 @@ PCHReader::ReadPCHBlock() {
1339
1339
}
1340
1340
UnusedStaticFuncs.swap (Record);
1341
1341
break ;
1342
-
1342
+
1343
1343
case pch::LOCALLY_SCOPED_EXTERNAL_DECLS:
1344
1344
if (!LocallyScopedExternalDecls.empty ()) {
1345
1345
Error (" duplicate LOCALLY_SCOPED_EXTERNAL_DECLS record in PCH file" );
@@ -1385,15 +1385,15 @@ PCHReader::ReadPCHBlock() {
1385
1385
break ;
1386
1386
1387
1387
case pch::STAT_CACHE: {
1388
- PCHStatCache *MyStatCache =
1388
+ PCHStatCache *MyStatCache =
1389
1389
new PCHStatCache ((const unsigned char *)BlobStart + Record[0 ],
1390
1390
(const unsigned char *)BlobStart,
1391
1391
NumStatHits, NumStatMisses);
1392
1392
FileMgr.addStatCache (MyStatCache);
1393
1393
StatCache = MyStatCache;
1394
1394
break ;
1395
1395
}
1396
-
1396
+
1397
1397
case pch::EXT_VECTOR_DECLS:
1398
1398
if (!ExtVectorDecls.empty ()) {
1399
1399
Error (" duplicate EXT_VECTOR_DECLS record in PCH file" );
@@ -1412,7 +1412,7 @@ PCHReader::ReadPCHBlock() {
1412
1412
Comments = (SourceRange *)BlobStart;
1413
1413
NumComments = BlobLen / sizeof (SourceRange);
1414
1414
break ;
1415
-
1415
+
1416
1416
case pch::VERSION_CONTROL_BRANCH_REVISION: {
1417
1417
const std::string &CurBranch = getClangFullRepositoryVersion ();
1418
1418
llvm::StringRef PCHBranch (BlobStart, BlobLen);
@@ -1561,7 +1561,7 @@ void PCHReader::InitializeContext(ASTContext &Ctx) {
1561
1561
PP->getIdentifierTable ().setExternalIdentifierLookup (this );
1562
1562
PP->getHeaderSearchInfo ().SetExternalLookup (this );
1563
1563
PP->setExternalSource (this );
1564
-
1564
+
1565
1565
// Load the translation unit declaration
1566
1566
ReadDeclRecord (DeclOffsets[0 ], 0 );
1567
1567
@@ -2271,7 +2271,7 @@ PCHReader::GetTemplateArgumentLocInfo(TemplateArgument::ArgKind Kind,
2271
2271
case TemplateArgument::Type:
2272
2272
return GetTypeSourceInfo (Record, Index);
2273
2273
case TemplateArgument::Template: {
2274
- SourceLocation
2274
+ SourceLocation
2275
2275
QualStart = SourceLocation::getFromRawEncoding (Record[Index++]),
2276
2276
QualEnd = SourceLocation::getFromRawEncoding (Record[Index++]),
2277
2277
TemplateNameLoc = SourceLocation::getFromRawEncoding (Record[Index++]);
@@ -2487,7 +2487,7 @@ void PCHReader::InitializeSema(Sema &S) {
2487
2487
VarDecl *Var = cast<VarDecl>(GetDecl (TentativeDefinitions[I]));
2488
2488
SemaObj->TentativeDefinitions .push_back (Var);
2489
2489
}
2490
-
2490
+
2491
2491
// If there were any unused static functions, deserialize them and add to
2492
2492
// Sema's list of unused static functions.
2493
2493
for (unsigned I = 0 , N = UnusedStaticFuncs.size (); I != N; ++I) {
0 commit comments