Remove the unused Parser::ParseTranslationUnit function

Parser::ParseTranslationUnit is now dead because the loop over
ParseTopLevelDecl is in ParseAST.

llvm-svn: 172005
This commit is contained in:
Hal Finkel 2013-01-09 21:49:51 +00:00
parent 85a77c1609
commit 6134a6e7b8
2 changed files with 0 additions and 19 deletions

View File

@ -233,10 +233,6 @@ public:
// Parsing methods.
/// ParseTranslationUnit - All in one method that initializes parses, and
/// shuts down the parser.
void ParseTranslationUnit();
/// Initialize - Warm up the parser.
///
void Initialize();

View File

@ -561,21 +561,6 @@ bool Parser::ParseTopLevelDecl(DeclGroupPtrTy &Result) {
return false;
}
/// ParseTranslationUnit:
/// translation-unit: [C99 6.9]
/// external-declaration
/// translation-unit external-declaration
void Parser::ParseTranslationUnit() {
Initialize();
DeclGroupPtrTy Res;
while (!ParseTopLevelDecl(Res))
/*parse them all*/;
ExitScope();
assert(getCurScope() == 0 && "Scope imbalance!");
}
/// ParseExternalDeclaration:
///
/// external-declaration: [C99 6.9], declaration: [C++ dcl.dcl]