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:
parent
25f0a1d209
commit
6db4218605
@ -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