summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/LLVMContextImpl.h
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-10-21 23:57:35 +0000
committerDevang Patel <dpatel@apple.com>2009-10-21 23:57:35 +0000
commit27e0be274e6d6f320ce3f487f14b74903e17ba4e (patch)
tree89cd7ac98ee7adb229ecf465cda011d78d422b3f /llvm/lib/VMCore/LLVMContextImpl.h
parent52987dc5812b0738ace0fed93d907595cfd0a2e2 (diff)
downloadbcm5719-llvm-27e0be274e6d6f320ce3f487f14b74903e17ba4e.tar.gz
bcm5719-llvm-27e0be274e6d6f320ce3f487f14b74903e17ba4e.zip
Derive metadata hierarchy from Value instead of User.
llvm-svn: 84801
Diffstat (limited to 'llvm/lib/VMCore/LLVMContextImpl.h')
-rw-r--r--llvm/lib/VMCore/LLVMContextImpl.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/VMCore/LLVMContextImpl.h b/llvm/lib/VMCore/LLVMContextImpl.h
index 58e8870d24e..84902d53559 100644
--- a/llvm/lib/VMCore/LLVMContextImpl.h
+++ b/llvm/lib/VMCore/LLVMContextImpl.h
@@ -203,9 +203,6 @@ public:
AggZeroConstants.freeConstants();
NullPtrConstants.freeConstants();
UndefValueConstants.freeConstants();
- for (FoldingSet<MDNode>::iterator I = MDNodeSet.begin(),
- E = MDNodeSet.end(); I != E; ++I)
- I->dropAllReferences();
for (IntMapTy::iterator I = IntConstants.begin(), E = IntConstants.end();
I != E; ++I) {
if (I->second->use_empty())
@@ -216,6 +213,7 @@ public:
if (I->second->use_empty())
delete I->second;
}
+ MDNodeSet.clear();
}
};
OpenPOWER on IntegriCloud