mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[DAG] Ensure all SD classes consistently return a const reference with getDebugLoc(). NFCI.
Avoids a lot of unnecessary tracking increments/decrements of the underlying TrackingMDNodeRef.
This commit is contained in:
parent
f2e0efd85f
commit
b5e4cc0124
@ -211,7 +211,7 @@ public:
|
||||
bool isVariadic() const { return IsVariadic; }
|
||||
|
||||
/// Returns the DebugLoc.
|
||||
DebugLoc getDebugLoc() const { return DL; }
|
||||
const DebugLoc &getDebugLoc() const { return DL; }
|
||||
|
||||
/// Returns the SDNodeOrder. This is the order of the preceding node in the
|
||||
/// input.
|
||||
@ -251,7 +251,7 @@ public:
|
||||
MDNode *getLabel() const { return Label; }
|
||||
|
||||
/// Returns the DebugLoc.
|
||||
DebugLoc getDebugLoc() const { return DL; }
|
||||
const DebugLoc &getDebugLoc() const { return DL; }
|
||||
|
||||
/// Returns the SDNodeOrder. This is the order of the preceding node in the
|
||||
/// input.
|
||||
|
Loading…
x
Reference in New Issue
Block a user