[llvm-commits] [llvm] r80307 - in /llvm/trunk: include/llvm/Analysis/DebugInfo.h lib/CodeGen/AsmPrinter/DwarfDebug.cpp

Devang Patel dpatel at apple.com
Thu Aug 27 16:51:51 PDT 2009


Author: dpatel
Date: Thu Aug 27 18:51:51 2009
New Revision: 80307

URL: http://llvm.org/viewvc/llvm-project?rev=80307&view=rev
Log:
Closure is a very generic name. Use AppleBlock instead.

Modified:
    llvm/trunk/include/llvm/Analysis/DebugInfo.h
    llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp

Modified: llvm/trunk/include/llvm/Analysis/DebugInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/DebugInfo.h?rev=80307&r1=80306&r2=80307&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Analysis/DebugInfo.h (original)
+++ llvm/trunk/include/llvm/Analysis/DebugInfo.h Thu Aug 27 18:51:51 2009
@@ -169,10 +169,10 @@
   class DIType : public DIDescriptor {
   public:
     enum {
-      FlagPrivate   = 1 << 0,
-      FlagProtected = 1 << 1,
-      FlagFwdDecl   = 1 << 2,
-      FlagClosure   = 1 << 3
+      FlagPrivate    = 1 << 0,
+      FlagProtected  = 1 << 1,
+      FlagFwdDecl    = 1 << 2,
+      FlagAppleBlock = 1 << 3
     };
 
   protected:
@@ -224,8 +224,9 @@
     bool isForwardDecl() const {
       return (getFlags() & FlagFwdDecl) != 0; 
     }
-    bool isClosure() const {
-      return (getFlags() & FlagClosure) != 0; 
+    // isAppleBlock - Return true if this is the Apple Blocks extension.
+    bool isAppleBlockExtension() const {
+      return (getFlags() & FlagAppleBlock) != 0; 
     }
 
     /// dump - print type.

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=80307&r1=80306&r2=80307&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Thu Aug 27 18:51:51 2009
@@ -689,7 +689,7 @@
       Buffer.AddChild(ElemDie);
     }
 
-    if (CTy.isClosure())
+    if (CTy.isAppleBlockExtension())
       AddUInt(&Buffer, dwarf::DW_AT_APPLE_block, dwarf::DW_FORM_flag, 1);
 
     unsigned RLang = CTy.getRunTimeLang();





More information about the llvm-commits mailing list