forked from OSchip/llvm-project
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:
parent
85a77c1609
commit
6134a6e7b8
|
@ -233,10 +233,6 @@ public:
|
||||||
|
|
||||||
// Parsing methods.
|
// Parsing methods.
|
||||||
|
|
||||||
/// ParseTranslationUnit - All in one method that initializes parses, and
|
|
||||||
/// shuts down the parser.
|
|
||||||
void ParseTranslationUnit();
|
|
||||||
|
|
||||||
/// Initialize - Warm up the parser.
|
/// Initialize - Warm up the parser.
|
||||||
///
|
///
|
||||||
void Initialize();
|
void Initialize();
|
||||||
|
|
|
@ -561,21 +561,6 @@ bool Parser::ParseTopLevelDecl(DeclGroupPtrTy &Result) {
|
||||||
return false;
|
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:
|
/// ParseExternalDeclaration:
|
||||||
///
|
///
|
||||||
/// external-declaration: [C99 6.9], declaration: [C++ dcl.dcl]
|
/// external-declaration: [C99 6.9], declaration: [C++ dcl.dcl]
|
||||||
|
|
Loading…
Reference in New Issue