Do not use value handle to wrap MDNode in DIDescriptor.
authorDevang Patel <dpatel@apple.com>
Fri, 13 Nov 2009 21:45:04 +0000 (21:45 +0000)
committerDevang Patel <dpatel@apple.com>
Fri, 13 Nov 2009 21:45:04 +0000 (21:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88700 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/DebugInfo.h

index b10a545b0aefdf708cffff8889f0289e13bc9da6..4321278903e7430b7f3cdb48c7d2562e59932f64 100644 (file)
@@ -44,9 +44,11 @@ namespace llvm {
   class Instruction;
   class LLVMContext;
 
+  /// DIDescriptor - A thin wraper around MDNode to access encoded debug info. This should not
+  /// be stored in a container, because underly MDNode may change in certain situations.
   class DIDescriptor {
   protected:
-    TrackingVH<MDNode> DbgNode;
+    MDNode  *DbgNode;
 
     /// DIDescriptor constructor.  If the specified node is non-null, check
     /// to make sure that the tag in the descriptor matches 'RequiredTag'.  If