[llvm] r205277 - Add a comment about type-uniquing ObjC types.

Adrian Prantl aprantl at apple.com
Mon Mar 31 20:41:00 PDT 2014


Author: adrian
Date: Mon Mar 31 22:40:59 2014
New Revision: 205277

URL: http://llvm.org/viewvc/llvm-project?rev=205277&view=rev
Log:
Add a comment about type-uniquing ObjC types.

Modified:
    llvm/trunk/include/llvm/IR/DebugInfo.h

Modified: llvm/trunk/include/llvm/IR/DebugInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/DebugInfo.h?rev=205277&r1=205276&r2=205277&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/DebugInfo.h (original)
+++ llvm/trunk/include/llvm/IR/DebugInfo.h Mon Mar 31 22:40:59 2014
@@ -767,6 +767,8 @@ public:
     return (getUnsignedField(6) & dwarf::DW_APPLE_PROPERTY_nonatomic) != 0;
   }
 
+  /// Objective-C doesn't have an ODR, so there is no benefit in storing
+  /// the type as a DITypeRef here.
   DIType getType() const { return getFieldAs<DIType>(7); }
 
   /// Verify - Verify that a derived type descriptor is well formed.





More information about the llvm-commits mailing list