[cfe-commits] r64972 - in /cfe/trunk/lib: AST/Type.cpp Sema/SemaType.cpp

Chris Lattner sabre at nondot.org
Wed Feb 18 14:58:39 PST 2009


Author: lattner
Date: Wed Feb 18 16:58:38 2009
New Revision: 64972

URL: http://llvm.org/viewvc/llvm-project?rev=64972&view=rev
Log:
minor name changes, no functionality change.

Modified:
    cfe/trunk/lib/AST/Type.cpp
    cfe/trunk/lib/Sema/SemaType.cpp

Modified: cfe/trunk/lib/AST/Type.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Type.cpp?rev=64972&r1=64971&r2=64972&view=diff

==============================================================================
--- cfe/trunk/lib/AST/Type.cpp (original)
+++ cfe/trunk/lib/AST/Type.cpp Wed Feb 18 16:58:38 2009
@@ -1053,13 +1053,13 @@
 }
 
 void ExtQualType::getAsStringInternal(std::string &S) const {
-  bool space = false;
+  bool NeedsSpace = false;
   if (AddressSpace) {
     S = "__attribute__((address_space("+llvm::utostr_32(AddressSpace)+")))" + S;
-    space = true;
+    NeedsSpace = true;
   }
   if (GCAttrType != QualType::GCNone) {
-    if (space)
+    if (NeedsSpace)
       S += ' ';
     S += "__attribute__((objc_gc(";
     if (GCAttrType == QualType::Weak)

Modified: cfe/trunk/lib/Sema/SemaType.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaType.cpp?rev=64972&r1=64971&r2=64972&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaType.cpp (original)
+++ cfe/trunk/lib/Sema/SemaType.cpp Wed Feb 18 16:58:38 2009
@@ -778,7 +778,7 @@
 /// HandleObjCGCTypeAttribute - Process an objc's gc attribute on the
 /// specified type.  The attribute contains 1 argument, weak or strong.
 static void HandleObjCGCTypeAttribute(QualType &Type, 
-                                      const AttributeList &Attr, Sema &S){
+                                      const AttributeList &Attr, Sema &S) {
   // FIXME. change error code.
   if (Type.getObjCGCAttr() != QualType::GCNone) {
     S.Diag(Attr.getLoc(), diag::err_attribute_multiple_objc_gc);
@@ -791,22 +791,22 @@
       << "objc_gc" << 1;
     return;
   }
-  QualType::GCAttrTypes attr;
+  QualType::GCAttrTypes GCAttr;
   if (Attr.getNumArgs() != 0) {
     S.Diag(Attr.getLoc(), diag::err_attribute_wrong_number_arguments) << 1;
     return;
   }
   if (Attr.getParameterName()->isStr("weak")) 
-    attr = QualType::Weak;
+    GCAttr = QualType::Weak;
   else if (Attr.getParameterName()->isStr("strong"))
-    attr = QualType::Strong;
+    GCAttr = QualType::Strong;
   else {
     S.Diag(Attr.getLoc(), diag::warn_attribute_type_not_supported)
       << "objc_gc" << Attr.getParameterName();
     return;
   }
   
-  Type = S.Context.getObjCGCQualType(Type, attr);
+  Type = S.Context.getObjCGCQualType(Type, GCAttr);
 }
 
 void Sema::ProcessTypeAttributeList(QualType &Result, const AttributeList *AL) {





More information about the cfe-commits mailing list