mirror of
https://github.com/open-goal/jak-project
synced 2026-05-25 23:35:33 -04:00
2075dd66b6
* start the ObjectFileGenerator * finish v3 generation * add analysis for register allocator * add register allocator * fix const * fix build * fix formatting for clang-format * attempt to fix windows build * windows 2 * windows 3 * windows 4 * windows 5 * windows 6
24 lines
601 B
C++
24 lines
601 B
C++
#include "Compiler.h"
|
|
#include "goalc/logger/Logger.h"
|
|
|
|
Compiler::Compiler() {
|
|
init_logger();
|
|
m_ts.add_builtin_types();
|
|
}
|
|
|
|
void Compiler::execute_repl() {}
|
|
|
|
Compiler::~Compiler() {
|
|
gLogger.close();
|
|
}
|
|
|
|
void Compiler::init_logger() {
|
|
gLogger.set_file("compiler.txt");
|
|
gLogger.config[MSG_COLOR].kind = LOG_FILE;
|
|
gLogger.config[MSG_DEBUG].kind = LOG_IGNORE;
|
|
gLogger.config[MSG_TGT].color = COLOR_GREEN;
|
|
gLogger.config[MSG_TGT_INFO].color = COLOR_BLUE;
|
|
gLogger.config[MSG_WARN].color = COLOR_RED;
|
|
gLogger.config[MSG_ICE].color = COLOR_RED;
|
|
gLogger.config[MSG_ERR].color = COLOR_RED;
|
|
} |