1 // =================================
 2 // Copyright (c) 2021 Seppo Laakko
 3 // Distributed under the MIT license
 4 // =================================
 5 
 6 #ifndef CMAJOR_CODEGEN_CODEGENERATOR_INCLUDED
 7 #define CMAJOR_CODEGEN_CODEGENERATOR_INCLUDED
 8 #include <cmajor/codegenbase/CodeGenerator.hpp>
 9 
10 namespace cmajor { namespace codegen {
11 
12 class CodeGenerator 
13 {
14 public:
15     CodeGenerator(cmajor::ir::EmittingContext& emittingContext);
16     ~CodeGenerator();
17     cmajor::codegenbase::CodeGenerator* GetBaseCodeGenerator() const { return baseCodeGenerator; }
18 private:
19     cmajor::codegenbase::CodeGenerator* baseCodeGenerator;
20 };
21 
22 } } // namespace cmajor::codegen
23 
24 #endif // CMAJOR_CODEGEN_CODEGENERATOR_INCLUDED