diff options
author | David Majnemer <david.majnemer@gmail.com> | 2014-02-10 19:50:15 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2014-02-10 19:50:15 +0000 |
commit | 4bb0980d96281e62870a2631b4acaf2e44b306dd (patch) | |
tree | b6c40095531c39b23d96b4cdabe089c2925bb878 /clang/lib/AST/MicrosoftCXXABI.cpp | |
parent | 756c22cdedd122d2a53b5219a6bce9295d08ca18 (diff) | |
download | bcm5719-llvm-4bb0980d96281e62870a2631b4acaf2e44b306dd.tar.gz bcm5719-llvm-4bb0980d96281e62870a2631b4acaf2e44b306dd.zip |
MS ABI: Add support for #pragma pointers_to_members
Introduce a notion of a 'current representation method' for
pointers-to-members.
When starting out, this is set to 'best case' (representation method is
chosen by examining the class, selecting the smallest representation
that would work given the class definition or lack thereof).
This pragma allows the translation unit to dictate exactly what
representation to use, similar to how the inheritance model keywords
operate.
N.B. PCH support is forthcoming.
Differential Revision: http://llvm-reviews.chandlerc.com/D2723
llvm-svn: 201105
Diffstat (limited to 'clang/lib/AST/MicrosoftCXXABI.cpp')
-rw-r--r-- | clang/lib/AST/MicrosoftCXXABI.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/clang/lib/AST/MicrosoftCXXABI.cpp b/clang/lib/AST/MicrosoftCXXABI.cpp index 03d0d505514..91ffc63b770 100644 --- a/clang/lib/AST/MicrosoftCXXABI.cpp +++ b/clang/lib/AST/MicrosoftCXXABI.cpp @@ -109,14 +109,6 @@ CXXRecordDecl::getMSInheritanceModel() const { return IA->getSemanticSpelling(); } -void CXXRecordDecl::setMSInheritanceModel() { - if (hasAttr<MSInheritanceAttr>()) - return; - - addAttr(MSInheritanceAttr::CreateImplicit( - getASTContext(), calculateInheritanceModel(), getSourceRange())); -} - // Returns the number of pointer and integer slots used to represent a member // pointer in the MS C++ ABI. // |