From e8cafa21b92aaa55dbaee42d1c83d1b6cd81669e Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Wed, 25 Dec 2013 23:21:35 -0800 Subject: [PATCH] Dumping symbol names. --- src/alloy/frontend/ppc/ppc_function_builder.cc | 3 +-- src/alloy/frontend/ppc/ppc_translator.cc | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/alloy/frontend/ppc/ppc_function_builder.cc b/src/alloy/frontend/ppc/ppc_function_builder.cc index 53a400cf2..97eca85ab 100644 --- a/src/alloy/frontend/ppc/ppc_function_builder.cc +++ b/src/alloy/frontend/ppc/ppc_function_builder.cc @@ -49,11 +49,10 @@ int PPCFunctionBuilder::Emit(FunctionInfo* symbol_info) { instr_count_ = (symbol_info->end_address() - symbol_info->address()) / 4 + 1; - // TODO(benvanik): get/make up symbol name. Comment("%s fn %.8X-%.8X %s", symbol_info->module()->name(), symbol_info->address(), symbol_info->end_address(), - "(symbol name)"); + symbol_info->name()); // Allocate offset list. // This is used to quickly map labels to instructions. diff --git a/src/alloy/frontend/ppc/ppc_translator.cc b/src/alloy/frontend/ppc/ppc_translator.cc index 0f7193de3..675afc9de 100644 --- a/src/alloy/frontend/ppc/ppc_translator.cc +++ b/src/alloy/frontend/ppc/ppc_translator.cc @@ -132,11 +132,10 @@ void PPCTranslator::DumpSource( Memory* memory = frontend_->memory(); const uint8_t* p = memory->membase(); - // TODO(benvanik): get/make up symbol name. string_buffer->Append("%s fn %.8X-%.8X %s\n", symbol_info->module()->name(), symbol_info->address(), symbol_info->end_address(), - "(symbol name)"); + symbol_info->name()); auto blocks = scanner_->FindBlocks(symbol_info);