diff options
| author | Denis Zobnin <d.zobnin.bugzilla@gmail.com> | 2016-04-28 11:32:10 +0000 |
|---|---|---|
| committer | Denis Zobnin <d.zobnin.bugzilla@gmail.com> | 2016-04-28 11:32:10 +0000 |
| commit | 801d9b0cc4dca8a5ce190ac51b0c412263e95d95 (patch) | |
| tree | 9372ed0988288737d357000051bef94377cf79ac /clang/lib/Parse/ParseStmt.cpp | |
| parent | 632fdc5919d9738a1174a347deef377dbe18f51b (diff) | |
| download | bcm5719-llvm-801d9b0cc4dca8a5ce190ac51b0c412263e95d95.tar.gz bcm5719-llvm-801d9b0cc4dca8a5ce190ac51b0c412263e95d95.zip | |
Revert "[MS] Improved implementation of MS stack pragmas (vtordisp, *_seg)"
This reverts commit r267866.
llvm-svn: 267870
Diffstat (limited to 'clang/lib/Parse/ParseStmt.cpp')
| -rw-r--r-- | clang/lib/Parse/ParseStmt.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/Parse/ParseStmt.cpp b/clang/lib/Parse/ParseStmt.cpp index 69989fe522e..085319f9bdd 100644 --- a/clang/lib/Parse/ParseStmt.cpp +++ b/clang/lib/Parse/ParseStmt.cpp @@ -1928,8 +1928,7 @@ Decl *Parser::ParseFunctionStatementBody(Decl *Decl, ParseScope &BodyScope) { // Save and reset current vtordisp stack if we have entered a C++ method body. bool IsCXXMethod = getLangOpts().CPlusPlus && Decl && isa<CXXMethodDecl>(Decl); - Sema::PragmaStackSentinelRAII - PragmaStackSentinel(Actions, "InternalPragmaState", IsCXXMethod); + Sema::VtorDispStackRAII SavedVtorDispStack(Actions, IsCXXMethod); // Do not enter a scope for the brace, as the arguments are in the same scope // (the function body) as the body itself. Instead, just read the statement @@ -1973,8 +1972,7 @@ Decl *Parser::ParseFunctionTryBlock(Decl *Decl, ParseScope &BodyScope) { // Save and reset current vtordisp stack if we have entered a C++ method body. bool IsCXXMethod = getLangOpts().CPlusPlus && Decl && isa<CXXMethodDecl>(Decl); - Sema::PragmaStackSentinelRAII - PragmaStackSentinel(Actions, "InternalPragmaState", IsCXXMethod); + Sema::VtorDispStackRAII SavedVtorDispStack(Actions, IsCXXMethod); SourceLocation LBraceLoc = Tok.getLocation(); StmtResult FnBody(ParseCXXTryBlockCommon(TryLoc, /*FnTry*/true)); |

