mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
[CodeGen] Ensure UserValue::getDebugLoc() and UserLabel::getDebugLoc() consistently return a const reference NFCI.
Avoids a lot of unnecessary tracking increments/decrements of the underlying TrackingMDNodeRef.
This commit is contained in:
parent
b5e4cc0124
commit
9edfcde2eb
@ -473,7 +473,7 @@ public:
|
||||
BlockSkipInstsMap &BBSkipInstsMap);
|
||||
|
||||
/// Return DebugLoc of this UserValue.
|
||||
DebugLoc getDebugLoc() { return dl;}
|
||||
const DebugLoc &getDebugLoc() { return dl; }
|
||||
|
||||
void print(raw_ostream &, const TargetRegisterInfo *);
|
||||
};
|
||||
@ -506,7 +506,7 @@ public:
|
||||
BlockSkipInstsMap &BBSkipInstsMap);
|
||||
|
||||
/// Return DebugLoc of this UserLabel.
|
||||
DebugLoc getDebugLoc() { return dl; }
|
||||
const DebugLoc &getDebugLoc() { return dl; }
|
||||
|
||||
void print(raw_ostream &, const TargetRegisterInfo *);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user