diff options
author | Dale Johannesen <dalej@apple.com> | 2009-01-27 23:19:41 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2009-01-27 23:19:41 +0000 |
commit | 124c7fdd69bd0eebdec8aab7caa2f8779a56d878 (patch) | |
tree | 8b5d15d5eeb06d2a6399c6e6de8f7fdd2aa62303 /include/llvm | |
parent | ac7de20a49b9c0fc35dacfde51f7d05f909f7881 (diff) | |
download | external_llvm-124c7fdd69bd0eebdec8aab7caa2f8779a56d878.zip external_llvm-124c7fdd69bd0eebdec8aab7caa2f8779a56d878.tar.gz external_llvm-124c7fdd69bd0eebdec8aab7caa2f8779a56d878.tar.bz2 |
Reorder args, constify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63151 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/CodeGen/SelectionDAGNodes.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h index 772ef07..3aa3f5c 100644 --- a/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/include/llvm/CodeGen/SelectionDAGNodes.h @@ -902,7 +902,7 @@ public: inline bool isTargetOpcode() const; inline bool isMachineOpcode() const; inline unsigned getMachineOpcode() const; - inline DebugLoc getDebugLoc() const; + inline const DebugLoc getDebugLoc() const; /// reachesChainWithoutSideEffects - Return true if this operand (which must @@ -1152,10 +1152,10 @@ public: void setNodeId(int Id) { NodeId = Id; } /// getDebugLoc - Return the source location info. - DebugLoc getDebugLoc() const { return debugLoc; } + const DebugLoc getDebugLoc() const { return debugLoc; } /// setDebugLoc - Set source location info. - void setDebugLoc(DebugLoc sl) { debugLoc = sl; } + void setDebugLoc(const DebugLoc dl) { debugLoc = dl; } /// use_iterator - This class provides iterator support for SDUse /// operands that use a specific SDNode. @@ -1363,10 +1363,10 @@ protected: /// The next two constructors specify DebugLoc explicitly; the intent /// is that they will replace the above two over time, and eventually /// the ones above can be removed. - SDNode(unsigned Opc, SDVTList VTs, const SDValue *Ops, unsigned NumOps, - DebugLoc sl) + SDNode(unsigned Opc, const DebugLoc dl, SDVTList VTs, const SDValue *Ops, + unsigned NumOps) : NodeType(Opc), OperandsNeedDelete(true), SubclassData(0), - NodeId(-1), debugLoc(sl), + NodeId(-1), debugLoc(dl), OperandList(NumOps ? new SDUse[NumOps] : 0), ValueList(VTs.VTs), NumOperands(NumOps), NumValues(VTs.NumVTs), @@ -1379,9 +1379,9 @@ protected: /// This constructor adds no operands itself; operands can be /// set later with InitOperands. - SDNode(unsigned Opc, SDVTList VTs, DebugLoc sl) + SDNode(unsigned Opc, const DebugLoc dl, SDVTList VTs) : NodeType(Opc), OperandsNeedDelete(false), SubclassData(0), - NodeId(-1), debugLoc(sl), OperandList(0), + NodeId(-1), debugLoc(dl), OperandList(0), ValueList(VTs.VTs), NumOperands(0), NumValues(VTs.NumVTs), UseList(NULL) {} @@ -1479,7 +1479,7 @@ inline bool SDValue::use_empty() const { inline bool SDValue::hasOneUse() const { return Node->hasNUsesOfValue(1, ResNo); } -inline DebugLoc SDValue::getDebugLoc() const { +inline const DebugLoc SDValue::getDebugLoc() const { return Node->getDebugLoc(); } |