From d33d9c0cc0cfdcd0b10f35a6acdfb25da4a64f19 Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Wed, 18 Feb 2009 05:09:49 +0000 Subject: 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 --- lib/AST/Type.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/AST/Type.cpp') 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"; -- cgit v1.2.3-18-g5258