diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-05-11 02:38:11 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-05-11 02:38:11 +0000 |
commit | 1b09836bc3b543a06486e8989ce081f274a380a3 (patch) | |
tree | 0d1704e2f1b5f80ecc9751af3f076add6a6d1fcc /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
parent | 639890222e83c3b17c668708316fc6bcf9c413e8 (diff) | |
download | bcm5719-llvm-1b09836bc3b543a06486e8989ce081f274a380a3.tar.gz bcm5719-llvm-1b09836bc3b543a06486e8989ce081f274a380a3.zip |
Change getFrameMoves to return a const reference.
To add a frame now there is a dedicated addFrameMove which also takes
care of constructing the move itself.
llvm-svn: 181657
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 84162ace418..eb744d243b9 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -636,11 +636,12 @@ void AsmPrinter::emitPrologLabel(const MachineInstr &MI) { OutStreamer.EmitCompactUnwindEncoding(MMI->getCompactUnwindEncoding()); MachineModuleInfo &MMI = MF->getMMI(); - std::vector<MachineMove> &Moves = MMI.getFrameMoves(); + const std::vector<MachineMove> &Moves = MMI.getFrameMoves(); bool FoundOne = false; (void)FoundOne; - for (std::vector<MachineMove>::iterator I = Moves.begin(), - E = Moves.end(); I != E; ++I) { + for (std::vector<MachineMove>::const_iterator I = Moves.begin(), + E = Moves.end(); + I != E; ++I) { if (I->getLabel() == Label) { EmitCFIFrameMove(*I); FoundOne = true; |