Remove the public Lexer::getBufferEnd() function which breaks encapsulation

of the source buffer


Swift SVN r7084
This commit is contained in:
Dmitri Hrybenko
2013-08-09 18:10:29 +00:00
parent 41a463d9fa
commit 49e15b33e7
4 changed files with 4 additions and 13 deletions

View File

@@ -89,10 +89,7 @@ bool Parser::parseTranslationUnit(TranslationUnit *TU) {
TU->ASTStage = TranslationUnit::Parsed;
verify(TU);
bool Done = Tok.getLoc().Value.getPointer() == L->getBufferEnd();
if (!Done) {
State->markParserPosition(Tok.getLoc(), PreviousLoc);
}
State->markParserPosition(Tok.getLoc(), PreviousLoc);
return FoundTopLevelCodeToExecute;
}