C++11ing some things.

This commit is contained in:
Ben Vanik
2014-07-13 21:53:31 -07:00
parent 29e4c35c38
commit 0a250d5e91
28 changed files with 113 additions and 143 deletions

View File

@@ -38,9 +38,9 @@ int alloy_sandbox(int argc, xechar_t** argv) {
// backend.reset(new alloy::backend::x64::X64Backend(runtime));
runtime->Initialize(std::move(backend));
RawModule* module = new RawModule(runtime);
auto module = std::make_unique<RawModule>(runtime);
module->LoadFile(0x82000000, "test\\codegen\\instr_add.bin");
runtime->AddModule(module);
runtime->AddModule(std::move(module));
XenonThreadState* thread_state =
new XenonThreadState(runtime, 100, 64 * 1024, 0);