[llvm-commits] [llvm] r133707 - /llvm/trunk/lib/MC/MCDwarf.cpp

Bill Wendling isanbard at gmail.com
Thu Jun 23 00:55:41 PDT 2011


Author: void
Date: Thu Jun 23 02:55:41 2011
New Revision: 133707

URL: http://llvm.org/viewvc/llvm-project?rev=133707&view=rev
Log:
Use a reference. Don't make a useless copy of the vector.

Modified:
    llvm/trunk/lib/MC/MCDwarf.cpp

Modified: llvm/trunk/lib/MC/MCDwarf.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCDwarf.cpp?rev=133707&r1=133706&r2=133707&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCDwarf.cpp (original)
+++ llvm/trunk/lib/MC/MCDwarf.cpp Thu Jun 23 02:55:41 2011
@@ -759,7 +759,7 @@
 
   // Initial Instructions
 
-  const std::vector<MachineMove> Moves = asmInfo.getInitialFrameState();
+  const std::vector<MachineMove> &Moves = asmInfo.getInitialFrameState();
   std::vector<MCCFIInstruction> Instructions;
 
   for (int i = 0, n = Moves.size(); i != n; ++i) {





More information about the llvm-commits mailing list