mirror of
https://github.com/xenia-project/xenia.git
synced 2026-04-20 22:13:40 +00:00
Making code dumps conditional on --log_codegen
This commit is contained in:
parent
fcb66660c0
commit
1a01d365b5
1 changed files with 11 additions and 5 deletions
|
|
@ -212,12 +212,18 @@ int LibjitEmitter::MakeFunction(FunctionSymbol* symbol, jit_function_t fn) {
|
|||
}
|
||||
|
||||
if (!result_code) {
|
||||
// TODO(benvanik): flag
|
||||
// pre
|
||||
jit_dump_function(stdout, fn_, symbol->name());
|
||||
// libjit opcodes.
|
||||
if (FLAGS_log_codegen) {
|
||||
jit_dump_function(stdout, fn_, symbol->name());
|
||||
}
|
||||
|
||||
// Compile right now.
|
||||
jit_function_compile(fn_);
|
||||
// post
|
||||
jit_dump_function(stdout, fn_, symbol->name());
|
||||
|
||||
// x64 instructions.
|
||||
if (FLAGS_log_codegen) {
|
||||
jit_dump_function(stdout, fn_, symbol->name());
|
||||
}
|
||||
|
||||
XELOGE("Compile(%s): compiled to 0x%p - 0x%p (%db)",
|
||||
symbol->name(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue