[llvm-commits] [llvm] r49844 - /llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h

Roman Levenstein romix.llvm at googlemail.com
Thu Apr 17 02:29:49 PDT 2008


Author: romix
Date: Thu Apr 17 04:29:48 2008
New Revision: 49844

URL: http://llvm.org/viewvc/llvm-project?rev=49844&view=rev
Log:
Minor clean-up based on Dan's comments.

Modified:
    llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h

Modified: llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h?rev=49844&r1=49843&r2=49844&view=diff

==============================================================================
--- llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h (original)
+++ llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h Thu Apr 17 04:29:48 2008
@@ -879,25 +879,17 @@
 /// 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 @@
       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 @@
 
   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 @@
 };
 
 
-/// 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.
 /// 





More information about the llvm-commits mailing list