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/Spiller.h | |
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/Spiller.h')
-rw-r--r-- | llvm/lib/CodeGen/Spiller.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/Spiller.h b/llvm/lib/CodeGen/Spiller.h index b907f21db85..3d5172a9d06 100644 --- a/llvm/lib/CodeGen/Spiller.h +++ b/llvm/lib/CodeGen/Spiller.h @@ -16,14 +16,10 @@ namespace llvm { class LiveInterval; - class LiveIntervals; - class LiveStacks; class MachineFunction; - class MachineInstr; - class MachineLoopInfo; + class MachineFunctionPass; class SlotIndex; class VirtRegMap; - class VNInfo; /// Spiller interface. /// @@ -50,8 +46,9 @@ namespace llvm { }; /// Create and return a spiller object, as specified on the command line. - Spiller* createSpiller(MachineFunction *mf, LiveIntervals *li, - MachineLoopInfo *loopInfo, VirtRegMap *vrm); + Spiller* createSpiller(MachineFunctionPass &pass, + MachineFunction &mf, + VirtRegMap &vrm); } #endif |