summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/LiveStackAnalysis.h
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-03-30 20:16:45 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-03-30 20:16:45 +0000
commit991de14dd62dcbab4b31357ae22dc5b053ba50a0 (patch)
treebda68de401067e89361cd37e175d087fe0b3e6f1 /include/llvm/CodeGen/LiveStackAnalysis.h
parent820580dfa9ed3e70d3eda06138a59fd903f61b7a (diff)
downloadllvm-991de14dd62dcbab4b31357ae22dc5b053ba50a0.tar.gz
llvm-991de14dd62dcbab4b31357ae22dc5b053ba50a0.tar.bz2
llvm-991de14dd62dcbab4b31357ae22dc5b053ba50a0.tar.xz
Introduce SpecificBumpPtrAllocator, a wrapper for BumpPtrAllocator which allows
only a single type of object to be allocated. Use it to make VNInfo destruction typesafe. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99919 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/LiveStackAnalysis.h')
-rw-r--r--include/llvm/CodeGen/LiveStackAnalysis.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/LiveStackAnalysis.h b/include/llvm/CodeGen/LiveStackAnalysis.h
index e01d1aea7e..c6af6a1f89 100644
--- a/include/llvm/CodeGen/LiveStackAnalysis.h
+++ b/include/llvm/CodeGen/LiveStackAnalysis.h
@@ -27,7 +27,7 @@ namespace llvm {
class LiveStacks : public MachineFunctionPass {
/// Special pool allocator for VNInfo's (LiveInterval val#).
///
- BumpPtrAllocator VNInfoAllocator;
+ VNInfo::Allocator VNInfoAllocator;
/// S2IMap - Stack slot indices to live interval mapping.
///
@@ -91,7 +91,7 @@ namespace llvm {
return I->second;
}
- BumpPtrAllocator& getVNInfoAllocator() { return VNInfoAllocator; }
+ VNInfo::Allocator& getVNInfoAllocator() { return VNInfoAllocator; }
virtual void getAnalysisUsage(AnalysisUsage &AU) const;
virtual void releaseMemory();