| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #include <gyoji-codegen.hpp> | ||
| 2 | #include <gyoji-context.hpp> | ||
| 3 | #include <stdio.h> | ||
| 4 | |||
| 5 | using namespace Gyoji::mir; | ||
| 6 | |||
| 7 | 30 | void Gyoji::codegen::generate_code( | |
| 8 | const Gyoji::context::CompilerContext & _compiler_context, | ||
| 9 | const MIR & _mir, | ||
| 10 | const std::string & _filename | ||
| 11 | ) | ||
| 12 | { | ||
| 13 | 30 | CodeGeneratorLLVM generator(_compiler_context, _mir); | |
| 14 | 30 | generator.initialize(); | |
| 15 | 30 | generator.generate(); | |
| 16 | 30 | generator.output(_filename); | |
| 17 | 30 | } | |
| 18 |