@@ -1313,18 +1313,18 @@ class ASTReader
1313
1313
ASTReaderListener *Listener,
1314
1314
bool ValidateDiagnosticOptions);
1315
1315
1316
- ASTReadResult ReadASTBlock (ModuleFile &F, unsigned ClientLoadCapabilities);
1317
- ASTReadResult ReadExtensionBlock (ModuleFile &F);
1316
+ llvm::Error ReadASTBlock (ModuleFile &F, unsigned ClientLoadCapabilities);
1317
+ llvm::Error ReadExtensionBlock (ModuleFile &F);
1318
1318
void ReadModuleOffsetMap (ModuleFile &F) const ;
1319
- bool ParseLineTable (ModuleFile &F, const RecordData &Record);
1320
- bool ReadSourceManagerBlock (ModuleFile &F);
1319
+ void ParseLineTable (ModuleFile &F, const RecordData &Record);
1320
+ llvm::Error ReadSourceManagerBlock (ModuleFile &F);
1321
1321
llvm::BitstreamCursor &SLocCursorForID (int ID);
1322
1322
SourceLocation getImportLocation (ModuleFile *F);
1323
1323
ASTReadResult ReadModuleMapFileBlock (RecordData &Record, ModuleFile &F,
1324
1324
const ModuleFile *ImportedBy,
1325
1325
unsigned ClientLoadCapabilities);
1326
- ASTReadResult ReadSubmoduleBlock (ModuleFile &F,
1327
- unsigned ClientLoadCapabilities);
1326
+ llvm::Error ReadSubmoduleBlock (ModuleFile &F,
1327
+ unsigned ClientLoadCapabilities);
1328
1328
static bool ParseLanguageOptions (const RecordData &Record, bool Complain,
1329
1329
ASTReaderListener &Listener,
1330
1330
bool AllowCompatibleDifferences);
@@ -1896,8 +1896,9 @@ class ASTReader
1896
1896
// / ReadBlockAbbrevs - Enter a subblock of the specified BlockID with the
1897
1897
// / specified cursor. Read the abbreviations that are at the top of the block
1898
1898
// / and then leave the cursor pointing into the block.
1899
- static bool ReadBlockAbbrevs (llvm::BitstreamCursor &Cursor, unsigned BlockID,
1900
- uint64_t *StartOfBlockOffset = nullptr );
1899
+ static llvm::Error ReadBlockAbbrevs (llvm::BitstreamCursor &Cursor,
1900
+ unsigned BlockID,
1901
+ uint64_t *StartOfBlockOffset = nullptr );
1901
1902
1902
1903
// / Finds all the visible declarations with a given name.
1903
1904
// / The current implementation of this method just loads the entire
0 commit comments