diff options
author | Devang Patel <dpatel@apple.com> | 2009-10-21 23:57:35 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-10-21 23:57:35 +0000 |
commit | 27e0be274e6d6f320ce3f487f14b74903e17ba4e (patch) | |
tree | 89cd7ac98ee7adb229ecf465cda011d78d422b3f /llvm/lib/VMCore/LLVMContextImpl.h | |
parent | 52987dc5812b0738ace0fed93d907595cfd0a2e2 (diff) | |
download | bcm5719-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.h | 4 |
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(); } }; |