diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-07-20 23:50:15 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-07-20 23:50:15 +0000 |
commit | f2c6e367c1c0d8797e62e58a3ccdb8cceee27987 (patch) | |
tree | 97477acab77a4bd9d3c5d2482d5df092ac10793e /lib/CodeGen/RegAllocLinearScan.cpp | |
parent | 549979f5509ef6ff14e1e46c141990deb8d8274e (diff) | |
download | external_llvm-f2c6e367c1c0d8797e62e58a3ccdb8cceee27987.zip external_llvm-f2c6e367c1c0d8797e62e58a3ccdb8cceee27987.tar.gz external_llvm-f2c6e367c1c0d8797e62e58a3ccdb8cceee27987.tar.bz2 |
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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/RegAllocLinearScan.cpp b/lib/CodeGen/RegAllocLinearScan.cpp index 98200af..2d6184c 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(); |