mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-26 21:47:07 +00:00
Gracefully destroy MDNodes.
llvm-svn: 81353
This commit is contained in:
parent
cfd0d3e363
commit
a12b2d35a0
@ -203,6 +203,9 @@ public:
|
|||||||
AggZeroConstants.freeConstants();
|
AggZeroConstants.freeConstants();
|
||||||
NullPtrConstants.freeConstants();
|
NullPtrConstants.freeConstants();
|
||||||
UndefValueConstants.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();
|
for (IntMapTy::iterator I=IntConstants.begin(), E=IntConstants.end();
|
||||||
I != E; ++I) {
|
I != E; ++I) {
|
||||||
if (I->second->use_empty())
|
if (I->second->use_empty())
|
||||||
|
Loading…
Reference in New Issue
Block a user