diff options
author | Reid Kleckner <reid@kleckner.net> | 2013-07-19 19:51:03 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2013-07-19 19:51:03 +0000 |
commit | 5b92696c8f1f8ef943ad87397b95c031b5787305 (patch) | |
tree | 7efb5ac27a70d3fd82ccd88d8d1a736343a61865 /include/clang/AST/Type.h | |
parent | 10ec0e4935e5d2efab4ee2731ccb350330dc5b34 (diff) | |
download | clang-5b92696c8f1f8ef943ad87397b95c031b5787305.tar.gz |
Create calling convention AttributedType sugar nodes
Canonical types are unchanged. The type printer had to be changed to
avoid printing any non-default implicit calling convention as well as
the calling convention attribute.
Reviewers: rjmccall
Differential Revision: http://llvm-reviews.chandlerc.com/D1132
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186714 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/AST/Type.h')
-rw-r--r-- | include/clang/AST/Type.h | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/include/clang/AST/Type.h b/include/clang/AST/Type.h index 562243c123..4997ce2fb7 100644 --- a/include/clang/AST/Type.h +++ b/include/clang/AST/Type.h @@ -3360,9 +3360,10 @@ public: attr_objc_gc, attr_objc_ownership, attr_pcs, + attr_pcs_vfp, FirstEnumOperandKind = attr_objc_gc, - LastEnumOperandKind = attr_pcs, + LastEnumOperandKind = attr_pcs_vfp, // No operand. attr_noreturn, @@ -3406,16 +3407,9 @@ public: bool isSugared() const { return true; } QualType desugar() const { return getEquivalentType(); } - bool isMSTypeSpec() const { - switch (getAttrKind()) { - default: return false; - case attr_ptr32: - case attr_ptr64: - case attr_sptr: - case attr_uptr: - return true; - } - } + bool isMSTypeSpec() const; + + bool isCallingConv() const; void Profile(llvm::FoldingSetNodeID &ID) { Profile(ID, getAttrKind(), ModifiedType, EquivalentType); |