summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/MicrosoftCXXABI.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2014-03-05 18:55:38 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2014-03-05 18:55:38 +0000
commitf27217ffaff36ec12419e86713ee534c374bf2c5 (patch)
treeaf315f3b29171138b0dff4c653bb35258f76a259 /clang/lib/AST/MicrosoftCXXABI.cpp
parent7f4a52eaee2e97d55664e07c1d9a76797e512ba9 (diff)
AST: Remove layering violation with Sema
Scope lives in Sema and cannot be used in AST. Shuffle things around. llvm-svn: 202993
Diffstat (limited to 'clang/lib/AST/MicrosoftCXXABI.cpp')
-rw-r--r--clang/lib/AST/MicrosoftCXXABI.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/clang/lib/AST/MicrosoftCXXABI.cpp b/clang/lib/AST/MicrosoftCXXABI.cpp
index f2fd848d2645..9ee0321b0b3b 100644
--- a/clang/lib/AST/MicrosoftCXXABI.cpp
+++ b/clang/lib/AST/MicrosoftCXXABI.cpp
@@ -29,12 +29,14 @@ namespace {
/// Typically these are things like static locals, lambdas, or blocks.
class MicrosoftNumberingContext : public MangleNumberingContext {
public:
- virtual unsigned getManglingNumber(const VarDecl *VD, Scope *S) {
- return S->getMSLocalManglingNumber();
+ virtual unsigned getManglingNumber(const VarDecl *VD,
+ unsigned MSLocalManglingNumber) {
+ return MSLocalManglingNumber;
}
- virtual unsigned getManglingNumber(const TagDecl *TD, Scope *S) {
- return S->getMSLocalManglingNumber();
+ virtual unsigned getManglingNumber(const TagDecl *TD,
+ unsigned MSLocalManglingNumber) {
+ return MSLocalManglingNumber;
}
};