[llvm-commits] CVS: llvm/include/llvm/Use.h

Chris Lattner lattner at cs.uiuc.edu
Fri Jan 28 16:31:04 PST 2005



Changes in directory llvm/include/llvm:

Use.h updated: 1.7 -> 1.8
---
Log message:

Adjust to User.h changes.


---
Diffs of the changes:  (+9 -2)

 Use.h |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)


Index: llvm/include/llvm/Use.h
diff -u llvm/include/llvm/Use.h:1.7 llvm/include/llvm/Use.h:1.8
--- llvm/include/llvm/Use.h:1.7	Wed Oct 27 11:14:47 2004
+++ llvm/include/llvm/Use.h	Fri Jan 28 18:30:52 2005
@@ -37,10 +37,17 @@
   Use *Prev, *Next;
   friend struct ilist_traits<Use>;
 public:
-  inline Use(Value *v, User *user);
-  inline Use(const Use &u);
+  inline void init(Value *V, User *U);
+
+  Use(Value *V, User *U) { init(V, U); }
+  Use(const Use &U) { init(U.Val, U.U); }
   inline ~Use();
 
+  /// Default ctor - This leaves the Use completely unitialized.  The only thing
+  /// that is valid to do with this use is to call the "init" method.
+  inline Use() : Val(0) {}
+
+
   operator Value*() const { return Val; }
   Value *get() const { return Val; }
   User *getUser() const { return U; }






More information about the llvm-commits mailing list