summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-06-23 07:55:41 +0000
committerBill Wendling <isanbard@gmail.com>2011-06-23 07:55:41 +0000
commit25fbb92320fac0a9982d03cc1b00973440d4d475 (patch)
treeff2f86a89c693c685f35040e0dd1e3aca5e3f64a /llvm/lib
parenta4b9d1f97bdc2fbfcce793da324c1897775bdaaa (diff)
downloadbcm5719-llvm-25fbb92320fac0a9982d03cc1b00973440d4d475.tar.gz
bcm5719-llvm-25fbb92320fac0a9982d03cc1b00973440d4d475.zip
Use a reference. Don't make a useless copy of the vector.
llvm-svn: 133707
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/MC/MCDwarf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCDwarf.cpp b/llvm/lib/MC/MCDwarf.cpp
index a35506bacc6..d232d84cc36 100644
--- a/llvm/lib/MC/MCDwarf.cpp
+++ b/llvm/lib/MC/MCDwarf.cpp
@@ -759,7 +759,7 @@ const MCSymbol &FrameEmitterImpl::EmitCIE(MCStreamer &streamer,
// 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) {
OpenPOWER on IntegriCloud