feat: remove unused imports, todos and typos
This commit is contained in:
@@ -2,8 +2,6 @@
|
|||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include "prelude/string.hpp"
|
#include "prelude/string.hpp"
|
||||||
#include "parser/ast.hpp"
|
#include "parser/ast.hpp"
|
||||||
#include "ir/slot.hpp"
|
|
||||||
#include "ir/allocator.hpp"
|
|
||||||
#include "ir/value.hpp"
|
#include "ir/value.hpp"
|
||||||
#include "ir/ops.hpp"
|
#include "ir/ops.hpp"
|
||||||
|
|
||||||
@@ -158,7 +156,6 @@ namespace IR
|
|||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// TODO: think about safety (copying m_ops->data before giving)
|
|
||||||
OpView ops() const { return OpView(m_ops->data, m_ops->size); }
|
OpView ops() const { return OpView(m_ops->data, m_ops->size); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ namespace IR
|
|||||||
StringView m_symbol;
|
StringView m_symbol;
|
||||||
};
|
};
|
||||||
|
|
||||||
// TODO: Make function return value (i.e. inhreit the OpValued class instead)
|
// TODO: Make function return value (i.e. inherit the OpValued class instead)
|
||||||
class FnOp : public Op
|
class FnOp : public Op
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -87,30 +87,6 @@ namespace IR
|
|||||||
ValueHandle::Type *m_typ;
|
ValueHandle::Type *m_typ;
|
||||||
};
|
};
|
||||||
|
|
||||||
// class LoadConstOp : public OpValued
|
|
||||||
// {
|
|
||||||
// public:
|
|
||||||
// LoadConstOp(ValueHandle *dest, long value)
|
|
||||||
// : OpValued(dest), m_value(value) {}
|
|
||||||
// ~LoadConstOp() {}
|
|
||||||
|
|
||||||
// OP_TYPE(LOAD_CONST)
|
|
||||||
// public:
|
|
||||||
// StringView Format(int indent) const override
|
|
||||||
// {
|
|
||||||
// StringBuilder sb;
|
|
||||||
// sb.AppendIndent(indent);
|
|
||||||
// sb << result()->Format() << " = LOAD_CONST " << m_value;
|
|
||||||
// return sb.view();
|
|
||||||
// }
|
|
||||||
|
|
||||||
// public:
|
|
||||||
// long value() const { return m_value; }
|
|
||||||
|
|
||||||
// private:
|
|
||||||
// long m_value;
|
|
||||||
// };
|
|
||||||
|
|
||||||
class LoadOp : public OpValued
|
class LoadOp : public OpValued
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|||||||
Reference in New Issue
Block a user