llvm.org GIT mirror llvm / 8518e74
Add more methods to be more value-like git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8074 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 17 years ago
1 changed file(s) with 6 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
1414
1515 struct ValueHolder : public User {
1616 ValueHolder(Value *V = 0);
17 ValueHolder(const ValueHolder &VH) : User(VH.getType(), Value::TypeVal) {}
1718
1819 // Getters...
1920 const Value *get() const { return getOperand(0); }
2728 return *this;
2829 }
2930
31 const ValueHolder &operator=(ValueHolder &VH) {
32 setOperand(0, VH);
33 return *this;
34 }
35
3036 virtual void print(std::ostream& OS) const {
3137 OS << "ValueHolder";
3238 }