llvm-objdump: Pass DiceTableEntry by reference

DiceTableEntry is 24 bytes on my machine, it's probably better to pass
them by reference.

This fixes PR21464.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221247 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Majnemer 2014-11-04 08:41:48 +00:00
parent 8f129a446d
commit 3aeca77385

View File

@ -124,8 +124,8 @@ typedef std::pair<uint64_t, DiceRef> DiceTableEntry;
typedef std::vector<DiceTableEntry> DiceTable;
typedef DiceTable::iterator dice_table_iterator;
static bool compareDiceTableEntries(const DiceTableEntry i,
const DiceTableEntry j) {
static bool compareDiceTableEntries(const DiceTableEntry &i,
const DiceTableEntry &j) {
return i.first == j.first;
}