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 | 0fef9dda8ec1f4a20693a0518cfb6142a1e82fc3 (patch) | |
tree | a29721718fbfcbb231c07bbadb43d2e1cf81947d /llvm/lib/CodeGen/RegAllocLinearScan.cpp | |
parent | afbe4a7a106ac8309d08382c43fd249423a736ab (diff) | |
download | bcm5719-llvm-0fef9dda8ec1f4a20693a0518cfb6142a1e82fc3.tar.gz bcm5719-llvm-0fef9dda8ec1f4a20693a0518cfb6142a1e82fc3.zip |
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.
llvm-svn: 108969
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocLinearScan.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocLinearScan.cpp b/llvm/lib/CodeGen/RegAllocLinearScan.cpp index 98200af0cf0..2d6184c943b 100644 --- a/llvm/lib/CodeGen/RegAllocLinearScan.cpp +++ b/llvm/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(); |