GlobalVariableVal, // This is an instance of GlobalVariable
ConstantVal, // This is an instance of Constant
InstructionVal, // This is an instance of Instruction
- OtherVal, // This is an instance of something else
};
unsigned getValueType() const {
return SubclassID;
/// globals section.
/// @brief A list of values as a User of those Values.
struct ValueList : public User {
- ValueList() : User(Type::VoidTy, Value::OtherVal) {}
+ ValueList() : User(Type::VoidTy, Value::FunctionVal) {}
// vector compatibility methods
unsigned size() const { return getNumOperands(); }