1
2
3
4
5
6 #include <cmajor/codegenbase/CodeGenerator.hpp>
7 #include <cmajor/cmmid/Interface.hpp>
8
9 namespace cmajor { namespace codegenbase {
10
11 CodeGenerator::CodeGenerator(cmajor::ir::EmittingContext& emittingContext) : emitter(CmmCreateEmitter(&emittingContext))
12 {
13 }
14
15 CodeGenerator::~CodeGenerator()
16 {
17 CmmDestroyEmitter(emitter);
18 }
19
20 } }