[llvm-commits] [llvm] r88700 - /llvm/trunk/include/llvm/Analysis/DebugInfo.h
Devang Patel
dpatel at apple.com
Fri Nov 13 13:45:04 PST 2009
Author: dpatel
Date: Fri Nov 13 15:45:04 2009
New Revision: 88700
URL: http://llvm.org/viewvc/llvm-project?rev=88700&view=rev
Log:
Do not use value handle to wrap MDNode in DIDescriptor.
Modified:
llvm/trunk/include/llvm/Analysis/DebugInfo.h
Modified: llvm/trunk/include/llvm/Analysis/DebugInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/DebugInfo.h?rev=88700&r1=88699&r2=88700&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/DebugInfo.h (original)
+++ llvm/trunk/include/llvm/Analysis/DebugInfo.h Fri Nov 13 15:45:04 2009
@@ -44,9 +44,11 @@
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
More information about the llvm-commits
mailing list