Updating bitcode emitter stub according to new Emitter iface.
This commit is contained in:
parent
a4b484b2b9
commit
c740954528
|
@ -18,17 +18,19 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "BitcodeEmitter.hpp"
|
#include "BitcodeEmitter.hpp"
|
||||||
|
#include "Nodes.hpp"
|
||||||
|
|
||||||
using namespace monicelli;
|
using namespace monicelli;
|
||||||
|
|
||||||
|
struct BitcodeEmitter::Private {
|
||||||
|
};
|
||||||
|
|
||||||
void BitcodeEmitter::emit(Id const& node) {
|
BitcodeEmitter::BitcodeEmitter() {
|
||||||
|
d = new Private;
|
||||||
}
|
}
|
||||||
|
|
||||||
void BitcodeEmitter::emit(Integer const& node) {
|
BitcodeEmitter::~BitcodeEmitter() {
|
||||||
}
|
delete d;
|
||||||
|
|
||||||
void BitcodeEmitter::emit(Float const& node) {
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void BitcodeEmitter::emit(Return const& node) {
|
void BitcodeEmitter::emit(Return const& node) {
|
||||||
|
@ -76,66 +78,18 @@ void BitcodeEmitter::emit(Module const& node) {
|
||||||
void BitcodeEmitter::emit(Program const& node) {
|
void BitcodeEmitter::emit(Program const& node) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void BitcodeEmitter::emit(ExpLt const& node) {
|
void BitcodeEmitter::emit(Id const& node) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void BitcodeEmitter::emit(ExpGt const& node) {
|
void BitcodeEmitter::emit(Integer const& node) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void BitcodeEmitter::emit(ExpLte const& node) {
|
void BitcodeEmitter::emit(Float const& node) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void BitcodeEmitter::emit(ExpGte const& node) {
|
void BitcodeEmitter::emit(BinaryExpression const& node) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void BitcodeEmitter::emit(ExpPlus const& node) {
|
void BitcodeEmitter::emit(BinarySemiExpression const& node) {
|
||||||
}
|
|
||||||
|
|
||||||
void BitcodeEmitter::emit(ExpMinus const& node) {
|
|
||||||
}
|
|
||||||
|
|
||||||
void BitcodeEmitter::emit(ExpTimes const& node) {
|
|
||||||
}
|
|
||||||
|
|
||||||
void BitcodeEmitter::emit(ExpDiv const& node) {
|
|
||||||
}
|
|
||||||
|
|
||||||
void BitcodeEmitter::emit(ExpShl const& node) {
|
|
||||||
}
|
|
||||||
|
|
||||||
void BitcodeEmitter::emit(ExpShr const& node) {
|
|
||||||
}
|
|
||||||
|
|
||||||
void BitcodeEmitter::emit(SemiExpEq const& node) {
|
|
||||||
}
|
|
||||||
|
|
||||||
void BitcodeEmitter::emit(SemiExpLt const& node) {
|
|
||||||
}
|
|
||||||
|
|
||||||
void BitcodeEmitter::emit(SemiExpGt const& node) {
|
|
||||||
}
|
|
||||||
|
|
||||||
void BitcodeEmitter::emit(SemiExpLte const& node) {
|
|
||||||
}
|
|
||||||
|
|
||||||
void BitcodeEmitter::emit(SemiExpGte const& node) {
|
|
||||||
}
|
|
||||||
|
|
||||||
void BitcodeEmitter::emit(SemiExpPlus const& node) {
|
|
||||||
}
|
|
||||||
|
|
||||||
void BitcodeEmitter::emit(SemiExpMinus const& node) {
|
|
||||||
}
|
|
||||||
|
|
||||||
void BitcodeEmitter::emit(SemiExpTimes const& node) {
|
|
||||||
}
|
|
||||||
|
|
||||||
void BitcodeEmitter::emit(SemiExpDiv const& node) {
|
|
||||||
}
|
|
||||||
|
|
||||||
void BitcodeEmitter::emit(SemiExpShl const& node) {
|
|
||||||
}
|
|
||||||
|
|
||||||
void BitcodeEmitter::emit(SemiExpShr const& node) {
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -26,9 +26,10 @@ namespace monicelli {
|
||||||
|
|
||||||
class BitcodeEmitter: public Emitter {
|
class BitcodeEmitter: public Emitter {
|
||||||
public:
|
public:
|
||||||
virtual void emit(Id const&) override;
|
BitcodeEmitter();
|
||||||
virtual void emit(Integer const&) override;
|
BitcodeEmitter(BitcodeEmitter &) = delete;
|
||||||
virtual void emit(Float const&) override;
|
virtual ~BitcodeEmitter();
|
||||||
|
|
||||||
virtual void emit(Return const&) override;
|
virtual void emit(Return const&) override;
|
||||||
virtual void emit(Loop const&) override;
|
virtual void emit(Loop const&) override;
|
||||||
virtual void emit(VarDeclaration const&) override;
|
virtual void emit(VarDeclaration const&) override;
|
||||||
|
@ -44,27 +45,16 @@ public:
|
||||||
virtual void emit(Function const&) override;
|
virtual void emit(Function const&) override;
|
||||||
virtual void emit(Module const&) override;
|
virtual void emit(Module const&) override;
|
||||||
virtual void emit(Program const&) override;
|
virtual void emit(Program const&) override;
|
||||||
virtual void emit(ExpLt const&) override;
|
|
||||||
virtual void emit(ExpGt const&) override;
|
virtual void emit(Id const&) override;
|
||||||
virtual void emit(ExpLte const&) override;
|
virtual void emit(Integer const&) override;
|
||||||
virtual void emit(ExpGte const&) override;
|
virtual void emit(Float const&) override;
|
||||||
virtual void emit(ExpPlus const&) override;
|
virtual void emit(BinaryExpression const&) override;
|
||||||
virtual void emit(ExpMinus const&) override;
|
virtual void emit(BinarySemiExpression const&) override;
|
||||||
virtual void emit(ExpTimes const&) override;
|
|
||||||
virtual void emit(ExpDiv const&) override;
|
private:
|
||||||
virtual void emit(ExpShl const&) override;
|
struct Private;
|
||||||
virtual void emit(ExpShr const&) override;
|
Private const* d;
|
||||||
virtual void emit(SemiExpEq const&) override;
|
|
||||||
virtual void emit(SemiExpLt const&) override;
|
|
||||||
virtual void emit(SemiExpGt const&) override;
|
|
||||||
virtual void emit(SemiExpLte const&) override;
|
|
||||||
virtual void emit(SemiExpGte const&) override;
|
|
||||||
virtual void emit(SemiExpPlus const&) override;
|
|
||||||
virtual void emit(SemiExpMinus const&) override;
|
|
||||||
virtual void emit(SemiExpTimes const&) override;
|
|
||||||
virtual void emit(SemiExpDiv const&) override;
|
|
||||||
virtual void emit(SemiExpShl const&) override;
|
|
||||||
virtual void emit(SemiExpShr const&) override;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue
Block a user