Doug convinced me that DW_AT_APPLE_objc_complete_type is more appropriate name.
authorDevang Patel <dpatel@apple.com>
Thu, 12 May 2011 21:29:42 +0000 (21:29 +0000)
committerDevang Patel <dpatel@apple.com>
Thu, 12 May 2011 21:29:42 +0000 (21:29 +0000)
s/DW_AT_APPLE_objc_class_extension/DW_AT_APPLE_objc_complete_type/g

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131244 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/DebugInfo.h
include/llvm/Support/Dwarf.h
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
lib/Support/Dwarf.cpp

index a01b5a3a86bcf57d00339d005b774de9a77710d8..fbee5a6311e3ba425e9fa66fbef6b55e97049935 100644 (file)
@@ -58,7 +58,7 @@ namespace llvm {
       FlagArtificial         = 1 << 6,
       FlagExplicit           = 1 << 7,
       FlagPrototyped         = 1 << 8,
-      FlagObjcClassExtension = 1 << 9
+      FlagObjcClassComplete  = 1 << 9
     };
   protected:
     const MDNode *DbgNode;
@@ -272,8 +272,8 @@ namespace llvm {
     bool isArtificial() const {
       return (getFlags() & FlagArtificial) != 0;
     }
-    bool isObjcClassExtension() const {
-      return (getFlags() & FlagObjcClassExtension) != 0;
+    bool isObjcClassComplete() const {
+      return (getFlags() & FlagObjcClassComplete) != 0;
     }
     bool isValid() const {
       return DbgNode && (isBasicType() || isDerivedType() || isCompositeType());
index 7fecf6f5f0f4abf26da16d8342eb4531c1dd0146..70bac0c9fc86d08311d4e3936e0abfefd22f93d9 100644 (file)
@@ -235,7 +235,7 @@ enum dwarf_constants {
   DW_AT_APPLE_property_getter = 0x3fe9,
   DW_AT_APPLE_property_setter = 0x3fea,
   DW_AT_APPLE_property_attribute = 0x3feb,
-  DW_AT_APPLE_objc_class_extension = 0x3fec,
+  DW_AT_APPLE_objc_complete_type = 0x3fec,
 
   // Attribute form encodings
   DW_FORM_addr = 0x01,
index 4eb40947752e67f97b1513df20508f734e909692..df3a4aa7b0fc2fbea10168eb5fb48c2beacc9d2c 100644 (file)
@@ -766,8 +766,8 @@ void CompileUnit::constructTypeDIE(DIE &Buffer, DICompositeType CTy) {
       addToContextOwner(&Buffer, Context);
     }
 
-    if (CTy.isObjcClassExtension())
-      addUInt(&Buffer, dwarf::DW_AT_APPLE_objc_class_extension,
+    if (CTy.isObjcClassComplete())
+      addUInt(&Buffer, dwarf::DW_AT_APPLE_objc_complete_type,
               dwarf::DW_FORM_flag, 1);
 
     if (Tag == dwarf::DW_TAG_class_type) 
index cbf8aad5f22df4f93255394a6762cef788665faf..0813321b6f79e791ed7ee9fcb79fab9957d6f109 100644 (file)
@@ -207,7 +207,7 @@ const char *llvm::dwarf::AttributeString(unsigned Attribute) {
   case DW_AT_APPLE_property_getter:      return "DW_AT_APPLE_property_getter";
   case DW_AT_APPLE_property_setter:      return "DW_AT_APPLE_property_setter";
   case DW_AT_APPLE_property_attribute:   return "DW_AT_APPLE_property_attribute";
-  case DW_AT_APPLE_objc_class_extension: return "DW_AT_APPLE_objc_class_extension";
+  case DW_AT_APPLE_objc_complete_type:   return "DW_AT_APPLE_objc_complete_type";
   }
   return 0;
 }