Executing a bunch of instructions!

Very hacky module startup code, but can now start XEXs! Time to start
implementing kernel stuff.
This commit is contained in:
Ben Vanik
2013-01-27 22:14:24 -08:00
parent 92a3e19cd9
commit 46d5a0b51d
10 changed files with 57 additions and 46 deletions

View File

@@ -77,7 +77,7 @@ int ModuleGenerator::Generate() {
}
di_builder_ = new DIBuilder(*gen_module_);
di_builder_->createCompileUnit(
0,
dwarf::DW_LANG_C99, //0x8010,
StringRef(module_name_),
StringRef(dir),
StringRef("xenia"),
@@ -196,7 +196,7 @@ void ModuleGenerator::AddMissingImport(FunctionSymbol* fn) {
IRBuilder<> builder(block);
if (FLAGS_trace_kernel_calls) {
Value* traceKernelCall = m->getGlobalVariable("XeTraceKernelCall");
Value* traceKernelCall = m->getFunction("XeTraceKernelCall");
builder.CreateCall3(
traceKernelCall,
f->arg_begin(),