Removed 'ppc_dasm_one(std::string &string,...' declaration, and updated caller

This commit is contained in:
Nathan Woods 2016-11-20 19:24:05 -05:00
parent 7c868e53d0
commit 68a1153691
2 changed files with 4 additions and 4 deletions

View File

@ -476,7 +476,6 @@ enum
#define G_XO(op) ((op & M_XO) >> (31 - 30))
extern offs_t ppc_dasm_one(std::ostream &stream, uint32_t pc, uint32_t op);
extern offs_t ppc_dasm_one(std::string &string, uint32_t pc, uint32_t op);

View File

@ -3745,11 +3745,12 @@ bool ppc_device::generate_instruction_3f(drcuml_block *block, compiler_state *co
void ppc_device::log_add_disasm_comment(drcuml_block *block, uint32_t pc, uint32_t op)
{
std::string buffer;
if (m_drcuml->logging())
{
ppc_dasm_one(buffer, pc, op);
block->append_comment("%08X: %s", pc, buffer.c_str()); // comment
util::ovectorstream stream;
ppc_dasm_one(stream, pc, op);
stream.put('\0');
block->append_comment("%08X: %s", pc, &stream.vec()[0]); // comment
}
}