diff options
author | Hal Finkel <hfinkel@anl.gov> | 2013-01-09 21:49:51 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2013-01-09 21:49:51 +0000 |
commit | 898dd70865e42962fbeba346f7abcdc937664e2b (patch) | |
tree | f0efbcd96701ffb6249a8fa86242e9059fa6a5fa /lib/Parse/Parser.cpp | |
parent | 6d5b57a5c7b05ac092b6a4b9704bea937cc3ba23 (diff) |
Remove the unused Parser::ParseTranslationUnit function
Parser::ParseTranslationUnit is now dead because the loop over
ParseTopLevelDecl is in ParseAST.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172005 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/Parser.cpp')
-rw-r--r-- | lib/Parse/Parser.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/Parse/Parser.cpp b/lib/Parse/Parser.cpp index ae5394be28..cc0d1d2fd1 100644 --- a/lib/Parse/Parser.cpp +++ b/lib/Parse/Parser.cpp @@ -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] |