summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SplitKit.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-08-13 22:56:53 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-08-13 22:56:53 +0000
commit0a2b2a1497a77f1db281d4dc9f21d01fe48f6ec6 (patch)
treeecc515811fea79d68e2aa582d2a8ac20f6d1605e /lib/CodeGen/SplitKit.h
parent703af3ab128addcd061e0761b059a919da2a4066 (diff)
downloadllvm-0a2b2a1497a77f1db281d4dc9f21d01fe48f6ec6.tar.gz
llvm-0a2b2a1497a77f1db281d4dc9f21d01fe48f6ec6.tar.bz2
llvm-0a2b2a1497a77f1db281d4dc9f21d01fe48f6ec6.tar.xz
Clean up the Spiller.h interface.
The earliestStart argument is entirely specific to linear scan allocation, and can be easily calculated by RegAllocLinearScan. Replace std::vector with SmallVector. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111055 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SplitKit.h')
-rw-r--r--lib/CodeGen/SplitKit.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SplitKit.h b/lib/CodeGen/SplitKit.h
index ad9b92f5ae..c419120a08 100644
--- a/lib/CodeGen/SplitKit.h
+++ b/lib/CodeGen/SplitKit.h
@@ -183,7 +183,7 @@ class SplitEditor {
bool liveThrough_;
/// All the new intervals created for this split are added to intervals_.
- std::vector<LiveInterval*> &intervals_;
+ SmallVectorImpl<LiveInterval*> &intervals_;
/// The index into intervals_ of the first interval we added. There may be
/// others from before we got it.
@@ -199,7 +199,7 @@ public:
/// Create a new SplitEditor for editing the LiveInterval analyzed by SA.
/// Newly created intervals will be appended to newIntervals.
SplitEditor(SplitAnalysis &SA, LiveIntervals&, VirtRegMap&,
- std::vector<LiveInterval*> &newIntervals);
+ SmallVectorImpl<LiveInterval*> &newIntervals);
/// getAnalysis - Get the corresponding analysis.
SplitAnalysis &getAnalysis() { return sa_; }