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 | 625fc8a70dea12493a862ff030cf63e1a3eeec8c (patch) | |
tree | 5b4e1e0eb704805d78a52af94bda4b15a441ca44 /lib/VMCore/LLVMContextImpl.h | |
parent | 3980f9bdc1bef099f011b193282624140d918f4d (diff) | |
download | external_llvm-625fc8a70dea12493a862ff030cf63e1a3eeec8c.zip external_llvm-625fc8a70dea12493a862ff030cf63e1a3eeec8c.tar.gz external_llvm-625fc8a70dea12493a862ff030cf63e1a3eeec8c.tar.bz2 |
Derive metadata hierarchy from Value instead of User.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84801 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/LLVMContextImpl.h')
-rw-r--r-- | lib/VMCore/LLVMContextImpl.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/VMCore/LLVMContextImpl.h b/lib/VMCore/LLVMContextImpl.h index 58e8870..84902d5 100644 --- a/lib/VMCore/LLVMContextImpl.h +++ b/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(); } }; |