mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
RegionInfo: Free the RegionNodes in cache.
Contributed by: ether git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116380 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cd77686254
commit
67be08a2f1
@ -376,6 +376,11 @@ void Region::dump() const {
|
||||
}
|
||||
|
||||
void Region::clearNodeCache() {
|
||||
// Free the cached nodes.
|
||||
for (BBNodeMapT::iterator I = BBNodeMap.begin(),
|
||||
IE = BBNodeMap.end(); I != IE; ++IE)
|
||||
delete I->second;
|
||||
|
||||
BBNodeMap.clear();
|
||||
for (Region::iterator RI = begin(), RE = end(); RI != RE; ++RI)
|
||||
(*RI)->clearNodeCache();
|
||||
|
Loading…
Reference in New Issue
Block a user