1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

Use a reference instead of making an unnecessary copy. Also use 'const'.

llvm-svn: 188483
This commit is contained in:
Bill Wendling 2013-08-15 20:21:49 +00:00
parent 25f0a1d209
commit 6db4218605

View File

@ -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;