Deleting LIR and such, wiring up for HIR->x64.
This commit is contained in:
@@ -17,8 +17,6 @@ DebugInfo::DebugInfo() :
|
||||
source_disasm_(0),
|
||||
raw_hir_disasm_(0),
|
||||
hir_disasm_(0),
|
||||
raw_lir_disasm_(0),
|
||||
lir_disasm_(0),
|
||||
machine_code_disasm_(0) {
|
||||
}
|
||||
|
||||
@@ -26,7 +24,5 @@ DebugInfo::~DebugInfo() {
|
||||
xe_free(source_disasm_);
|
||||
xe_free(raw_hir_disasm_);
|
||||
xe_free(hir_disasm_);
|
||||
xe_free(raw_lir_disasm_);
|
||||
xe_free(lir_disasm_);
|
||||
xe_free(machine_code_disasm_);
|
||||
}
|
||||
|
||||
@@ -23,9 +23,7 @@ enum DebugInfoFlags {
|
||||
DEBUG_INFO_SOURCE_DISASM = (1 << 1),
|
||||
DEBUG_INFO_RAW_HIR_DISASM = (1 << 2),
|
||||
DEBUG_INFO_HIR_DISASM = (1 << 3),
|
||||
DEBUG_INFO_RAW_LIR_DISASM = (1 << 4),
|
||||
DEBUG_INFO_LIR_DISASM = (1 << 5),
|
||||
DEBUG_INFO_MACHINE_CODE_DISASM = (1 << 6),
|
||||
DEBUG_INFO_MACHINE_CODE_DISASM = (1 << 4),
|
||||
|
||||
DEBUG_INFO_ALL_DISASM = 0xFFFF,
|
||||
};
|
||||
@@ -42,10 +40,6 @@ public:
|
||||
void set_raw_hir_disasm(char* value) { raw_hir_disasm_ = value; }
|
||||
const char* hir_disasm() const { return hir_disasm_; }
|
||||
void set_hir_disasm(char* value) { hir_disasm_ = value; }
|
||||
const char* raw_lir_disasm() const { return raw_lir_disasm_; }
|
||||
void set_raw_lir_disasm(char* value) { raw_lir_disasm_ = value; }
|
||||
const char* lir_disasm() const { return lir_disasm_; }
|
||||
void set_lir_disasm(char* value) { lir_disasm_ = value; }
|
||||
const char* machine_code_disasm() const { return machine_code_disasm_; }
|
||||
void set_machine_code_disasm(char* value) { machine_code_disasm_ = value; }
|
||||
|
||||
@@ -58,8 +52,6 @@ private:
|
||||
char* source_disasm_;
|
||||
char* raw_hir_disasm_;
|
||||
char* hir_disasm_;
|
||||
char* raw_lir_disasm_;
|
||||
char* lir_disasm_;
|
||||
char* machine_code_disasm_;
|
||||
};
|
||||
|
||||
|
||||
@@ -91,10 +91,10 @@ int Runtime::Initialize(Frontend* frontend, Backend* backend) {
|
||||
#endif // ALLOY_HAS_IVM_BACKEND
|
||||
if (FLAGS_runtime_backend == "any") {
|
||||
#if defined(ALLOY_HAS_X64_BACKEND) && ALLOY_HAS_X64_BACKEND
|
||||
/*if (!backend) {
|
||||
if (!backend) {
|
||||
backend = new alloy::backend::x64::X64Backend(
|
||||
this);
|
||||
}*/
|
||||
}
|
||||
#endif // ALLOY_HAS_X64_BACKEND
|
||||
#if defined(ALLOY_HAS_IVM_BACKEND) && ALLOY_HAS_IVM_BACKEND
|
||||
if (!backend) {
|
||||
|
||||
Reference in New Issue
Block a user