summaryrefslogtreecommitdiff
path: root/lib/MC/MCDwarf.cpp
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
commit5b46e8e6b82226810d0d6440b7b5fb05e68df5e8 (patch)
tree373b9b7e61a27e85b72479702ca6f5a86f9b4671 /lib/MC/MCDwarf.cpp
parenta8c9e6a943bc0873d1ce781d2444a6d6137f0e17 (diff)
downloadllvm-5b46e8e6b82226810d0d6440b7b5fb05e68df5e8.tar.gz
llvm-5b46e8e6b82226810d0d6440b7b5fb05e68df5e8.tar.bz2
llvm-5b46e8e6b82226810d0d6440b7b5fb05e68df5e8.tar.xz
Use a reference. Don't make a useless copy of the vector.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133707 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCDwarf.cpp')
-rw-r--r--lib/MC/MCDwarf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MC/MCDwarf.cpp b/lib/MC/MCDwarf.cpp
index a35506bacc..d232d84cc3 100644
--- a/lib/MC/MCDwarf.cpp
+++ b/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) {