diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-03-30 20:16:45 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-03-30 20:16:45 +0000 |
commit | 991de14dd62dcbab4b31357ae22dc5b053ba50a0 (patch) | |
tree | bda68de401067e89361cd37e175d087fe0b3e6f1 /include/llvm/CodeGen/LiveIntervalAnalysis.h | |
parent | 820580dfa9ed3e70d3eda06138a59fd903f61b7a (diff) | |
download | external_llvm-991de14dd62dcbab4b31357ae22dc5b053ba50a0.zip external_llvm-991de14dd62dcbab4b31357ae22dc5b053ba50a0.tar.gz external_llvm-991de14dd62dcbab4b31357ae22dc5b053ba50a0.tar.bz2 |
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/LiveIntervalAnalysis.h')
-rw-r--r-- | include/llvm/CodeGen/LiveIntervalAnalysis.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/LiveIntervalAnalysis.h b/include/llvm/CodeGen/LiveIntervalAnalysis.h index 1a2cc25..8ddcac7 100644 --- a/include/llvm/CodeGen/LiveIntervalAnalysis.h +++ b/include/llvm/CodeGen/LiveIntervalAnalysis.h @@ -55,7 +55,7 @@ namespace llvm { /// Special pool allocator for VNInfo's (LiveInterval val#). /// - BumpPtrAllocator VNInfoAllocator; + VNInfo::Allocator VNInfoAllocator; typedef DenseMap<unsigned, LiveInterval*> Reg2IntervalMap; Reg2IntervalMap r2iMap_; @@ -221,7 +221,7 @@ namespace llvm { indexes_->renumberIndexes(); } - BumpPtrAllocator& getVNInfoAllocator() { return VNInfoAllocator; } + VNInfo::Allocator& getVNInfoAllocator() { return VNInfoAllocator; } /// getVNInfoSourceReg - Helper function that parses the specified VNInfo /// copy field and returns the source register that defines it. |