Dumping symbol names.

This commit is contained in:
Ben Vanik 2013-12-25 23:21:35 -08:00
parent 3db93f781c
commit e8cafa21b9
2 changed files with 2 additions and 4 deletions

View File

@ -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.

View File

@ -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);