1 // =================================
 2 // Copyright (c) 2021 Seppo Laakko
 3 // Distributed under the MIT license
 4 // =================================
 5 
 6 #include <cmajor/cmmid/CmcppBackEnd.hpp>
 7 #include <cmajor/cmcppbe/Interface.hpp>
 8 
 9 namespace cmajor { namespace mid {
10 
11 void CmcppBackEnd::Init()
12 {
13 }
14 
15 void CmcppBackEnd::Done()
16 {
17 }
18 
19 cmajor::ir::EmittingContext* CmcppBackEnd::CreateEmittingContext(int optimizationLevel)
20 {
21     return CmcppbeCreateEmittingContext(optimizationLevel);
22 }
23 
24 void CmcppBackEnd::DestroyEmittingContext(cmajor::ir::EmittingContext* emittingContext)
25 {
26     CmcppbeDestroyEmittingContext(emittingContext);
27 }
28 
29 cmajor::ir::Emitter* CmcppBackEnd::CreateEmitter(cmajor::ir::EmittingContext* emittingContext)
30 {
31     return CmcppbeCreateEmitter(emittingContext);
32 }
33 
34 void CmcppBackEnd::DestroyEmitter(cmajor::ir::Emitter* emitter)
35 {
36     CmcppbeDestroyEmitter(emitter);
37 }
38 
39 } } // namespace cmajor::mid