Adding --always_disasm.
This commit is contained in:
parent
ff66064275
commit
2ed6f478c1
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
|
|
||||||
DECLARE_bool(debug);
|
DECLARE_bool(debug);
|
||||||
|
DECLARE_bool(always_disasm);
|
||||||
|
|
||||||
|
|
||||||
namespace alloy {
|
namespace alloy {
|
||||||
|
|
|
@ -21,3 +21,6 @@ using namespace alloy;
|
||||||
|
|
||||||
DEFINE_bool(debug, DEFAULT_DEBUG_FLAG,
|
DEFINE_bool(debug, DEFAULT_DEBUG_FLAG,
|
||||||
"Allow debugging and retain debug information.");
|
"Allow debugging and retain debug information.");
|
||||||
|
|
||||||
|
DEFINE_bool(always_disasm, false,
|
||||||
|
"Always add debug info to functions, even when no debugger is attached.");
|
||||||
|
|
|
@ -74,7 +74,7 @@ int PPCTranslator::Translate(
|
||||||
|
|
||||||
// NOTE: we only want to do this when required, as it's expensive to build.
|
// NOTE: we only want to do this when required, as it's expensive to build.
|
||||||
DebugInfo* debug_info = NULL;
|
DebugInfo* debug_info = NULL;
|
||||||
if (FLAGS_debug || with_debug_info) {
|
if (FLAGS_always_disasm || with_debug_info) {
|
||||||
debug_info = new DebugInfo();
|
debug_info = new DebugInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue