aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Levenstein <romix.llvm@googlemail.com>2008-04-17 09:29:48 +0000
committerRoman Levenstein <romix.llvm@googlemail.com>2008-04-17 09:29:48 +0000
commit6b0f3904f97a390d4fdba72371933156d0f4c95c (patch)
tree04d9be01cdf12feffbf34e20a375fd92fac2f413
parentdcf29c300706e7fe7d612a8302fcecff984a5838 (diff)
downloadexternal_llvm-6b0f3904f97a390d4fdba72371933156d0f4c95c.zip
external_llvm-6b0f3904f97a390d4fdba72371933156d0f4c95c.tar.gz
external_llvm-6b0f3904f97a390d4fdba72371933156d0f4c95c.tar.bz2
Minor clean-up based on Dan's comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49844 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/CodeGen/SelectionDAGNodes.h29
1 files changed, 7 insertions, 22 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h
index 74f7600..a1c1ec9 100644
--- a/include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/include/llvm/CodeGen/SelectionDAGNodes.h
@@ -879,25 +879,17 @@ template<> struct simplify_type<const SDOperand> {
/// the SDOperand.
class SDUse {
SDOperand Operand;
- /// parent - Parent node of this operand.
- SDNode *parent;
+ /// User - Parent node of this operand.
+ SDNode *User;
/// Prev, next - Pointers to the uses list of the SDNode referred by
/// this operand.
SDUse **Prev, *Next;
public:
friend class SDNode;
- SDUse(): Operand(), parent(NULL), Prev(NULL), Next(NULL) {}
+ SDUse(): Operand(), User(NULL), Prev(NULL), Next(NULL) {}
SDUse(SDNode *val, unsigned resno) :
- Operand(val,resno), parent(NULL), Prev(NULL), Next(NULL) {}
-
-
- SDUse& operator= (SDOperand& Op) {
- Operand = Op;
- Next = NULL;
- Prev = NULL;
- return *this;
- }
+ Operand(val,resno), User(NULL), Prev(NULL), Next(NULL) {}
SDUse& operator= (const SDOperand& Op) {
Operand = Op;
@@ -906,13 +898,6 @@ public:
return *this;
}
- SDUse& operator= (SDUse& Op) {
- Operand = Op;
- Next = NULL;
- Prev = NULL;
- return *this;
- }
-
SDUse& operator= (const SDUse& Op) {
Operand = Op;
Next = NULL;
@@ -922,9 +907,9 @@ public:
SDUse * getNext() { return Next; }
- SDNode *getUser() { return parent; }
+ SDNode *getUser() { return User; }
- void setUser(SDNode *p) { parent = p; }
+ void setUser(SDNode *p) { User = p; }
operator SDOperand() const { return Operand; }
@@ -975,7 +960,7 @@ template<> struct simplify_type<const SDUse> {
};
-/// SDOperandPtr - A helper SDOperand poiner class, that can handle
+/// SDOperandPtr - A helper SDOperand pointer class, that can handle
/// arrays of SDUse and arrays of SDOperand objects. This is required
/// in many places inside the SelectionDAG.
///