aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/Type.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-02-18 05:09:49 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-02-18 05:09:49 +0000
commitd33d9c0cc0cfdcd0b10f35a6acdfb25da4a64f19 (patch)
tree62ddec380281fd5d7584b9ad958acdf4df241f5d /lib/AST/Type.cpp
parent00dbfde0d7d0ef003a5a6bf7de0116636d0c1278 (diff)
Representation of objc gc's attribute using ExtQualType.
Note that one test attr-objc-gc.m fails. I will fix this after removing these attributes from the Decl nodes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64889 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Type.cpp')
-rw-r--r--lib/AST/Type.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp
index bc597072ed..6c72a76a60 100644
--- a/lib/AST/Type.cpp
+++ b/lib/AST/Type.cpp
@@ -1058,11 +1058,11 @@ void ExtQualType::getAsStringInternal(std::string &S) const {
S = "__attribute__((address_space("+llvm::utostr_32(AddressSpace)+")))" + S;
space = true;
}
- if (GCAttrType != GCNone) {
+ if (GCAttrType != QualType::GCNone) {
if (space)
S += ' ';
S += "__attribute__((objc_gc(";
- if (GCAttrType == Weak)
+ if (GCAttrType == QualType::Weak)
S += "weak";
else
S += "strong";