Adding --always_disasm.

This commit is contained in:
Ben Vanik 2014-01-06 22:51:06 -08:00
parent ff66064275
commit 2ed6f478c1
3 changed files with 5 additions and 1 deletions

View File

@ -16,6 +16,7 @@
DECLARE_bool(debug);
DECLARE_bool(always_disasm);
namespace alloy {

View File

@ -21,3 +21,6 @@ using namespace alloy;
DEFINE_bool(debug, DEFAULT_DEBUG_FLAG,
"Allow debugging and retain debug information.");
DEFINE_bool(always_disasm, false,
"Always add debug info to functions, even when no debugger is attached.");

View File

@ -74,7 +74,7 @@ int PPCTranslator::Translate(
// NOTE: we only want to do this when required, as it's expensive to build.
DebugInfo* debug_info = NULL;
if (FLAGS_debug || with_debug_info) {
if (FLAGS_always_disasm || with_debug_info) {
debug_info = new DebugInfo();
}