aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Use.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-01-29 00:30:52 +0000
committerChris Lattner <sabre@nondot.org>2005-01-29 00:30:52 +0000
commitb8d5b1211f982d65546d855130d99c42780a76a0 (patch)
tree95d3f7f7d89f9f150bee467f24c820ebd3be05f2 /include/llvm/Use.h
parentf718e70c7ee45daee8a46d1601d054ed9fd8f31d (diff)
downloadexternal_llvm-b8d5b1211f982d65546d855130d99c42780a76a0.zip
external_llvm-b8d5b1211f982d65546d855130d99c42780a76a0.tar.gz
external_llvm-b8d5b1211f982d65546d855130d99c42780a76a0.tar.bz2
Adjust to User.h changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19884 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Use.h')
-rw-r--r--include/llvm/Use.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/llvm/Use.h b/include/llvm/Use.h
index 88b723b..8f29394 100644
--- a/include/llvm/Use.h
+++ b/include/llvm/Use.h
@@ -37,10 +37,17 @@ class Use {
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; }