mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-09 16:45:03 +00:00
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:
parent
8f129a446d
commit
3aeca77385
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user