diff options
| author | Eric Christopher <echristo@gmail.com> | 2014-08-12 08:00:56 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2014-08-12 08:00:56 +0000 |
| commit | ce40dbcbaa3871671d0bb6d4131e9bbd99061ba7 (patch) | |
| tree | 81eea0362ea3fd0d26df8288d804b81d265673cf /llvm/lib/CodeGen/MachineFunction.cpp | |
| parent | eb90500d06b38a596d1b765c308bc8d9aed06996 (diff) | |
| download | bcm5719-llvm-ce40dbcbaa3871671d0bb6d4131e9bbd99061ba7.tar.gz bcm5719-llvm-ce40dbcbaa3871671d0bb6d4131e9bbd99061ba7.zip | |
Have MachineRegisterInfo take and store the MachineFunction it
was created for rather than the TargetMachine since we only
needed the TM for the subtarget and we can get that from the
MF.
llvm-svn: 215432
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index 212928815cb..7b73df0466a 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -58,7 +58,7 @@ MachineFunction::MachineFunction(const Function *F, const TargetMachine &TM, : Fn(F), Target(TM), STI(TM.getSubtargetImpl()), Ctx(mmi.getContext()), MMI(mmi), GMI(gmi) { if (TM.getSubtargetImpl()->getRegisterInfo()) - RegInfo = new (Allocator) MachineRegisterInfo(TM); + RegInfo = new (Allocator) MachineRegisterInfo(this); else RegInfo = nullptr; |

