summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/Spiller.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
commit27e1f265341c8c618a5c20934cd9485f94287f23 (patch)
treeb6325d187d6a8db2834f2da3eb50864e46718305 /llvm/lib/CodeGen/Spiller.h
parentdf4581f1c5c6c090024ffee38fec6229b5a73dfb (diff)
downloadbcm5719-llvm-27e1f265341c8c618a5c20934cd9485f94287f23.tar.gz
bcm5719-llvm-27e1f265341c8c618a5c20934cd9485f94287f23.zip
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. llvm-svn: 111055
Diffstat (limited to 'llvm/lib/CodeGen/Spiller.h')
-rw-r--r--llvm/lib/CodeGen/Spiller.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/Spiller.h b/llvm/lib/CodeGen/Spiller.h
index 3d5172a9d06..59bc0ec6ae7 100644
--- a/llvm/lib/CodeGen/Spiller.h
+++ b/llvm/lib/CodeGen/Spiller.h
@@ -11,7 +11,6 @@
#define LLVM_CODEGEN_SPILLER_H
#include "llvm/ADT/SmallVector.h"
-#include <vector>
namespace llvm {
@@ -36,12 +35,9 @@ namespace llvm {
/// @param spillIs A list of intervals that are about to be spilled,
/// and so cannot be used for remat etc.
/// @param newIntervals The newly created intervals will be appended here.
- /// @param earliestIndex The earliest point for splitting. (OK, it's another
- /// pointer to the allocator guts).
virtual void spill(LiveInterval *li,
- std::vector<LiveInterval*> &newIntervals,
- SmallVectorImpl<LiveInterval*> &spillIs,
- SlotIndex *earliestIndex = 0) = 0;
+ SmallVectorImpl<LiveInterval*> &newIntervals,
+ SmallVectorImpl<LiveInterval*> &spillIs) = 0;
};
OpenPOWER on IntegriCloud