Do not use value handle to wrap MDNode in DIDescriptor.

llvm-svn: 88700
This commit is contained in:
Devang Patel 2009-11-13 21:45:04 +00:00
parent 464de23b72
commit 452c1646c6
1 changed files with 3 additions and 1 deletions

View 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