summaryrefslogtreecommitdiff
path: root/lib/Target/SystemZ/SystemZConstantPoolValue.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-09-15 22:04:42 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-09-15 22:04:42 +0000
commit94ee55d4b39d6506cf4e0f4e4b1c0b7fbbfeaed5 (patch)
treea11274bb86a14e22b860582986b742ff4e07e948 /lib/Target/SystemZ/SystemZConstantPoolValue.cpp
parent766f25306af343fb2784350cb4d8cd9ca180f0d3 (diff)
downloadllvm-94ee55d4b39d6506cf4e0f4e4b1c0b7fbbfeaed5.tar.gz
llvm-94ee55d4b39d6506cf4e0f4e4b1c0b7fbbfeaed5.tar.bz2
llvm-94ee55d4b39d6506cf4e0f4e4b1c0b7fbbfeaed5.tar.xz
Replace some unnecessary vector copies with references.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190770 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ/SystemZConstantPoolValue.cpp')
-rw-r--r--lib/Target/SystemZ/SystemZConstantPoolValue.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/SystemZ/SystemZConstantPoolValue.cpp b/lib/Target/SystemZ/SystemZConstantPoolValue.cpp
index e9c4f6df52..6c7081169a 100644
--- a/lib/Target/SystemZ/SystemZConstantPoolValue.cpp
+++ b/lib/Target/SystemZ/SystemZConstantPoolValue.cpp
@@ -39,7 +39,7 @@ unsigned SystemZConstantPoolValue::getRelocationInfo() const {
int SystemZConstantPoolValue::
getExistingMachineCPValue(MachineConstantPool *CP, unsigned Alignment) {
unsigned AlignMask = Alignment - 1;
- const std::vector<MachineConstantPoolEntry> Constants = CP->getConstants();
+ const std::vector<MachineConstantPoolEntry> &Constants = CP->getConstants();
for (unsigned I = 0, E = Constants.size(); I != E; ++I) {
if (Constants[I].isMachineConstantPoolEntry() &&
(Constants[I].getAlignment() & AlignMask) == 0) {