summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveStackAnalysis.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-06-26 11:30:59 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-06-26 11:30:59 +0000
commita000002428287ab8c08d525e6f3bb7e22df07a6f (patch)
treea86fcac3bdf589730e218ba78c4d493b3e075b30 /llvm/lib/CodeGen/LiveStackAnalysis.cpp
parente9afee2910e907848f59a7c66d0ef6dbfe8b349f (diff)
downloadbcm5719-llvm-a000002428287ab8c08d525e6f3bb7e22df07a6f.tar.gz
bcm5719-llvm-a000002428287ab8c08d525e6f3bb7e22df07a6f.zip
VNInfos don't need to be destructed anymore.
llvm-svn: 106943
Diffstat (limited to 'llvm/lib/CodeGen/LiveStackAnalysis.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveStackAnalysis.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LiveStackAnalysis.cpp b/llvm/lib/CodeGen/LiveStackAnalysis.cpp
index 798b9b939cd..709e2c6d5ca 100644
--- a/llvm/lib/CodeGen/LiveStackAnalysis.cpp
+++ b/llvm/lib/CodeGen/LiveStackAnalysis.cpp
@@ -35,8 +35,8 @@ void LiveStacks::getAnalysisUsage(AnalysisUsage &AU) const {
}
void LiveStacks::releaseMemory() {
- // Release VNInfo memroy regions after all VNInfo objects are dtor'd.
- VNInfoAllocator.DestroyAll();
+ // Release VNInfo memory regions, VNInfo objects don't need to be dtor'd.
+ VNInfoAllocator.Reset();
S2IMap.clear();
S2RCMap.clear();
}
OpenPOWER on IntegriCloud