зеркало из https://github.com/microsoft/clang-1.git
Remove the unset, unused return value of
ASTReader::ReadMacroRecord(). No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136893 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
6e43f3f0e2
Коммит
3b2257ca05
|
@ -1589,7 +1589,7 @@ public:
|
|||
Expr *ReadSubExpr();
|
||||
|
||||
/// \brief Reads the macro record located at the given offset.
|
||||
PreprocessedEntity *ReadMacroRecord(Module &F, uint64_t Offset);
|
||||
void ReadMacroRecord(Module &F, uint64_t Offset);
|
||||
|
||||
/// \brief Reads the preprocessed entity located at the current stream
|
||||
/// position.
|
||||
|
|
|
@ -1413,7 +1413,7 @@ bool ASTReader::ReadBlockAbbrevs(llvm::BitstreamCursor &Cursor,
|
|||
}
|
||||
}
|
||||
|
||||
PreprocessedEntity *ASTReader::ReadMacroRecord(Module &F, uint64_t Offset) {
|
||||
void ASTReader::ReadMacroRecord(Module &F, uint64_t Offset) {
|
||||
assert(PP && "Forgot to set Preprocessor ?");
|
||||
llvm::BitstreamCursor &Stream = F.MacroCursor;
|
||||
|
||||
|
@ -1430,14 +1430,14 @@ PreprocessedEntity *ASTReader::ReadMacroRecord(Module &F, uint64_t Offset) {
|
|||
unsigned Code = Stream.ReadCode();
|
||||
switch (Code) {
|
||||
case llvm::bitc::END_BLOCK:
|
||||
return 0;
|
||||
return;
|
||||
|
||||
case llvm::bitc::ENTER_SUBBLOCK:
|
||||
// No known subblocks, always skip them.
|
||||
Stream.ReadSubBlockID();
|
||||
if (Stream.SkipBlock()) {
|
||||
Error("malformed block record in AST file");
|
||||
return 0;
|
||||
return;
|
||||
}
|
||||
continue;
|
||||
|
||||
|
@ -1461,12 +1461,12 @@ PreprocessedEntity *ASTReader::ReadMacroRecord(Module &F, uint64_t Offset) {
|
|||
// of the definition of the macro we were looking for. We're
|
||||
// done.
|
||||
if (Macro)
|
||||
return 0;
|
||||
return;
|
||||
|
||||
IdentifierInfo *II = getLocalIdentifier(F, Record[0]);
|
||||
if (II == 0) {
|
||||
Error("macro must have a name in AST file");
|
||||
return 0;
|
||||
return;
|
||||
}
|
||||
SourceLocation Loc = ReadSourceLocation(F, Record[1]);
|
||||
bool isUsed = Record[2];
|
||||
|
@ -1530,7 +1530,7 @@ PreprocessedEntity *ASTReader::ReadMacroRecord(Module &F, uint64_t Offset) {
|
|||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
return;
|
||||
}
|
||||
|
||||
PreprocessedEntity *ASTReader::LoadPreprocessedEntity(Module &F) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче