forked from OSchip/llvm-project
Make ctor inline, change ValueTy ->unsigned
llvm-svn: 14430
This commit is contained in:
parent
f758330347
commit
d2f55b69e0
|
@ -29,7 +29,8 @@ class User : public Value {
|
||||||
protected:
|
protected:
|
||||||
std::vector<Use> Operands;
|
std::vector<Use> Operands;
|
||||||
public:
|
public:
|
||||||
User(const Type *Ty, ValueTy vty, const std::string &name = "");
|
User(const Type *Ty, unsigned vty, const std::string &name = "")
|
||||||
|
: Value(Ty, vty, name) {}
|
||||||
|
|
||||||
inline Value *getOperand(unsigned i) {
|
inline Value *getOperand(unsigned i) {
|
||||||
assert(i < Operands.size() && "getOperand() out of range!");
|
assert(i < Operands.size() && "getOperand() out of range!");
|
||||||
|
|
Loading…
Reference in New Issue