feat: no VoidValue, just Void type
This commit is contained in:
@@ -129,27 +129,6 @@ namespace IR
|
||||
Type *m_value_typ;
|
||||
};
|
||||
|
||||
class Void : public ValueHandle
|
||||
{
|
||||
public:
|
||||
Void()
|
||||
: ValueHandle()
|
||||
{
|
||||
m_type = new Type{Type::Kind::Void};
|
||||
}
|
||||
|
||||
const Type *GetType() const override { return m_type; }
|
||||
|
||||
public:
|
||||
virtual StringView Format() const override
|
||||
{
|
||||
return m_type->Format();
|
||||
}
|
||||
|
||||
private:
|
||||
Type *m_type;
|
||||
};
|
||||
|
||||
class Instruction : public ValueHandle
|
||||
{
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user