mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
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
This commit is contained in:
@@ -34,13 +34,13 @@ AllowSplit("spiller-splits-edges",
|
||||
// Split Analysis
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
SplitAnalysis::SplitAnalysis(const MachineFunction *mf,
|
||||
const LiveIntervals *lis,
|
||||
const MachineLoopInfo *mli)
|
||||
: mf_(*mf),
|
||||
lis_(*lis),
|
||||
loops_(*mli),
|
||||
tii_(*mf->getTarget().getInstrInfo()),
|
||||
SplitAnalysis::SplitAnalysis(const MachineFunction &mf,
|
||||
const LiveIntervals &lis,
|
||||
const MachineLoopInfo &mli)
|
||||
: mf_(mf),
|
||||
lis_(lis),
|
||||
loops_(mli),
|
||||
tii_(*mf.getTarget().getInstrInfo()),
|
||||
curli_(0) {}
|
||||
|
||||
void SplitAnalysis::clear() {
|
||||
|
||||
Reference in New Issue
Block a user