diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-09-15 22:04:42 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-09-15 22:04:42 +0000 |
commit | 7d6052687e847a1d5d5d51efa571f39adb65ca2e (patch) | |
tree | a0eef05a4d866a75fd1e302ee36673544d1c7a18 /llvm/lib/Target/SystemZ/SystemZConstantPoolValue.cpp | |
parent | ac511cac7779ac44cf23a780b000e6734b05bd17 (diff) | |
download | bcm5719-llvm-7d6052687e847a1d5d5d51efa571f39adb65ca2e.tar.gz bcm5719-llvm-7d6052687e847a1d5d5d51efa571f39adb65ca2e.zip |
Replace some unnecessary vector copies with references.
llvm-svn: 190770
Diffstat (limited to 'llvm/lib/Target/SystemZ/SystemZConstantPoolValue.cpp')
-rw-r--r-- | llvm/lib/Target/SystemZ/SystemZConstantPoolValue.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZConstantPoolValue.cpp b/llvm/lib/Target/SystemZ/SystemZConstantPoolValue.cpp index e9c4f6df52c..6c7081169a9 100644 --- a/llvm/lib/Target/SystemZ/SystemZConstantPoolValue.cpp +++ b/llvm/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) { |