mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Use a reference instead of making an unnecessary copy. Also use 'const'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188483 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a77d9f726a
commit
7d938adacc
@ -658,11 +658,11 @@ void AsmPrinter::emitPrologLabel(const MachineInstr &MI) {
|
||||
OutStreamer.EmitCompactUnwindEncoding(MMI->getCompactUnwindEncoding());
|
||||
|
||||
MachineModuleInfo &MMI = MF->getMMI();
|
||||
std::vector<MCCFIInstruction> Instructions = MMI.getFrameInstructions();
|
||||
const std::vector<MCCFIInstruction> &Instrs = MMI.getFrameInstructions();
|
||||
bool FoundOne = false;
|
||||
(void)FoundOne;
|
||||
for (std::vector<MCCFIInstruction>::iterator I = Instructions.begin(),
|
||||
E = Instructions.end(); I != E; ++I) {
|
||||
for (std::vector<MCCFIInstruction>::const_iterator I = Instrs.begin(),
|
||||
E = Instrs.end(); I != E; ++I) {
|
||||
if (I->getLabel() == Label) {
|
||||
emitCFIInstruction(*I);
|
||||
FoundOne = true;
|
||||
|
Loading…
Reference in New Issue
Block a user