summaryrefslogtreecommitdiffstats
path: root/clang/Parse/Parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/Parse/Parser.cpp')
-rw-r--r--clang/Parse/Parser.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/Parse/Parser.cpp b/clang/Parse/Parser.cpp
index 117afab5cfa..fc5c4ae4f71 100644
--- a/clang/Parse/Parser.cpp
+++ b/clang/Parse/Parser.cpp
@@ -192,7 +192,7 @@ void Parser::ExitScope() {
// Inform the actions module that this scope is going away if there are any
// decls in it.
if (!CurScope->decl_empty())
- Actions.PopScope(Tok.getLocation(), CurScope);
+ Actions.ActOnPopScope(Tok.getLocation(), CurScope);
Scope *OldScope = CurScope;
CurScope = OldScope->getParent();
@@ -228,7 +228,8 @@ void Parser::Initialize() {
// Create the translation unit scope. Install it as the current scope.
assert(CurScope == 0 && "A scope is already active?");
EnterScope(Scope::DeclScope);
-
+ Actions.ActOnTranslationUnitScope(Tok.getLocation(), CurScope);
+
// Install builtin types.
// TODO: Move this someplace more useful.
{
OpenPOWER on IntegriCloud