summaryrefslogtreecommitdiff
path: root/lib/CodeGen/RegAllocLinearScan.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-07-20 23:50:15 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-07-20 23:50:15 +0000
commitf2c6e367c1c0d8797e62e58a3ccdb8cceee27987 (patch)
tree97477acab77a4bd9d3c5d2482d5df092ac10793e /lib/CodeGen/RegAllocLinearScan.cpp
parent549979f5509ef6ff14e1e46c141990deb8d8274e (diff)
downloadllvm-f2c6e367c1c0d8797e62e58a3ccdb8cceee27987.tar.gz
llvm-f2c6e367c1c0d8797e62e58a3ccdb8cceee27987.tar.bz2
llvm-f2c6e367c1c0d8797e62e58a3ccdb8cceee27987.tar.xz
Change the createSpiller interface to take a MachineFunctionPass argument.
The spillers can pluck the analyses they need from the pass reference. Switch some never-null pointers to references. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108969 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r--lib/CodeGen/RegAllocLinearScan.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/RegAllocLinearScan.cpp b/lib/CodeGen/RegAllocLinearScan.cpp
index 98200af0cf..2d6184c943 100644
--- a/lib/CodeGen/RegAllocLinearScan.cpp
+++ b/lib/CodeGen/RegAllocLinearScan.cpp
@@ -483,7 +483,7 @@ bool RALinScan::runOnMachineFunction(MachineFunction &fn) {
vrm_ = &getAnalysis<VirtRegMap>();
if (!rewriter_.get()) rewriter_.reset(createVirtRegRewriter());
- spiller_.reset(createSpiller(mf_, li_, loopInfo, vrm_));
+ spiller_.reset(createSpiller(*this, *mf_, *vrm_));
initIntervalSets();