mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 00:20:11 +00:00
Replace some unnecessary vector copies with references.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190770 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user