Dumping symbol names.
This commit is contained in:
parent
3db93f781c
commit
e8cafa21b9
|
@ -49,11 +49,10 @@ int PPCFunctionBuilder::Emit(FunctionInfo* symbol_info) {
|
||||||
instr_count_ =
|
instr_count_ =
|
||||||
(symbol_info->end_address() - symbol_info->address()) / 4 + 1;
|
(symbol_info->end_address() - symbol_info->address()) / 4 + 1;
|
||||||
|
|
||||||
// TODO(benvanik): get/make up symbol name.
|
|
||||||
Comment("%s fn %.8X-%.8X %s",
|
Comment("%s fn %.8X-%.8X %s",
|
||||||
symbol_info->module()->name(),
|
symbol_info->module()->name(),
|
||||||
symbol_info->address(), symbol_info->end_address(),
|
symbol_info->address(), symbol_info->end_address(),
|
||||||
"(symbol name)");
|
symbol_info->name());
|
||||||
|
|
||||||
// Allocate offset list.
|
// Allocate offset list.
|
||||||
// This is used to quickly map labels to instructions.
|
// This is used to quickly map labels to instructions.
|
||||||
|
|
|
@ -132,11 +132,10 @@ void PPCTranslator::DumpSource(
|
||||||
Memory* memory = frontend_->memory();
|
Memory* memory = frontend_->memory();
|
||||||
const uint8_t* p = memory->membase();
|
const uint8_t* p = memory->membase();
|
||||||
|
|
||||||
// TODO(benvanik): get/make up symbol name.
|
|
||||||
string_buffer->Append("%s fn %.8X-%.8X %s\n",
|
string_buffer->Append("%s fn %.8X-%.8X %s\n",
|
||||||
symbol_info->module()->name(),
|
symbol_info->module()->name(),
|
||||||
symbol_info->address(), symbol_info->end_address(),
|
symbol_info->address(), symbol_info->end_address(),
|
||||||
"(symbol name)");
|
symbol_info->name());
|
||||||
|
|
||||||
auto blocks = scanner_->FindBlocks(symbol_info);
|
auto blocks = scanner_->FindBlocks(symbol_info);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue