aboutsummaryrefslogtreecommitdiff
path: root/lib/Parse/Parser.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-08-23 02:00:52 +0000
committerChris Lattner <sabre@nondot.org>2008-08-23 02:00:52 +0000
commit06f548596beef4c0a227a45cba996497f99566c0 (patch)
treef8050e83a60306439d49dc24eb18538c50ea21d9 /lib/Parse/Parser.cpp
parente8904e992ca5e821b199c4577e8b5e5b17a33b1d (diff)
minor cleanup, remove finalize method.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55216 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/Parser.cpp')
-rw-r--r--lib/Parse/Parser.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/Parse/Parser.cpp b/lib/Parse/Parser.cpp
index a5e73cce32..330c22d1f4 100644
--- a/lib/Parse/Parser.cpp
+++ b/lib/Parse/Parser.cpp
@@ -281,13 +281,6 @@ bool Parser::ParseTopLevelDecl(DeclTy*& Result) {
return false;
}
-/// Finalize - Shut down the parser.
-///
-void Parser::Finalize() {
- ExitScope();
- assert(CurScope == 0 && "Scope imbalance!");
-}
-
/// ParseTranslationUnit:
/// translation-unit: [C99 6.9]
/// external-declaration
@@ -298,8 +291,9 @@ void Parser::ParseTranslationUnit() {
DeclTy *Res;
while (!ParseTopLevelDecl(Res))
/*parse them all*/;
-
- Finalize();
+
+ ExitScope();
+ assert(CurScope == 0 && "Scope imbalance!");
}
/// ParseExternalDeclaration: