diff options
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r-- | include/llvm/CodeGen/MachineInstr.h | 1 | ||||
-rw-r--r-- | include/llvm/CodeGen/SelectionDAGNodes.h | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index 3488ea3a0d..2a3f98dbc5 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -313,6 +313,7 @@ public: void setDesc(const TargetInstrDesc &tid) { TID = &tid; } /// setDebugLoc - Replace current source information with new such. + /// Avoid using this, the constructor argument is preferable. /// void setDebugLoc(const DebugLoc dl) { debugLoc = dl; } diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h index 3aa3f5ce05..c22b90ceed 100644 --- a/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/include/llvm/CodeGen/SelectionDAGNodes.h @@ -1154,7 +1154,8 @@ public: /// getDebugLoc - Return the source location info. const DebugLoc getDebugLoc() const { return debugLoc; } - /// setDebugLoc - Set source location info. + /// setDebugLoc - Set source location info. Try to avoid this, putting + /// it in the constructor is preferable. void setDebugLoc(const DebugLoc dl) { debugLoc = dl; } /// use_iterator - This class provides iterator support for SDUse |