diff options
| author | Matthias Braun <matze@braunis.de> | 2016-11-30 23:48:42 +0000 |
|---|---|---|
| committer | Matthias Braun <matze@braunis.de> | 2016-11-30 23:48:42 +0000 |
| commit | f23ef437ccf39dd8209960b942b3751547b07af5 (patch) | |
| tree | 4da3a28f0d68d50b7fe792f6fdb316b31e0d3ad4 /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
| parent | 39c3c89cdc20b541dee4b2ebb52c867d07982294 (diff) | |
| download | bcm5719-llvm-f23ef437ccf39dd8209960b942b3751547b07af5.tar.gz bcm5719-llvm-f23ef437ccf39dd8209960b942b3751547b07af5.zip | |
Move FrameInstructions from MachineModuleInfo to MachineFunction
This is per function data so it is better kept at the function instead
of the module.
This is a necessary step to have machine module passes work properly.
Differential Revision: https://reviews.llvm.org/D27185
llvm-svn: 288291
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 7f9dc837901..8394ed3adbf 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -821,8 +821,7 @@ void AsmPrinter::emitCFIInstruction(const MachineInstr &MI) { if (needsCFIMoves() == CFI_M_None) return; - const MachineModuleInfo &MMI = MF->getMMI(); - const std::vector<MCCFIInstruction> &Instrs = MMI.getFrameInstructions(); + const std::vector<MCCFIInstruction> &Instrs = MF->getFrameInstructions(); unsigned CFIIndex = MI.getOperand(0).getCFIIndex(); const MCCFIInstruction &CFI = Instrs[CFIIndex]; emitCFIInstruction(CFI); |

