diff options
author | Greg Clayton <gclayton@apple.com> | 2011-03-24 23:53:38 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2011-03-24 23:53:38 +0000 |
commit | 0ae962735fe3f58cd36bface32a4268bc7493178 (patch) | |
tree | e4369896bb5496e4b570939282f52aed4c9a349e /lldb/source/Core/EmulateInstruction.cpp | |
parent | ceef55466ad0b1f647a7e49c5b3512de50925500 (diff) | |
download | bcm5719-llvm-0ae962735fe3f58cd36bface32a4268bc7493178.tar.gz bcm5719-llvm-0ae962735fe3f58cd36bface32a4268bc7493178.zip |
Made the lldb_private::Opcode struct into a real boy... I mean class.
Modified the Disassembler::Instruction base class to contain an Opcode
instance so that we can know the bytes for an instruction without needing
to keep the data around.
Modified the DisassemblerLLVM's instruction class to correctly extract the
opcode bytes if all goes well.
llvm-svn: 128248
Diffstat (limited to 'lldb/source/Core/EmulateInstruction.cpp')
-rw-r--r-- | lldb/source/Core/EmulateInstruction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Core/EmulateInstruction.cpp b/lldb/source/Core/EmulateInstruction.cpp index 05ded393560..eb20d087e5a 100644 --- a/lldb/source/Core/EmulateInstruction.cpp +++ b/lldb/source/Core/EmulateInstruction.cpp @@ -59,9 +59,9 @@ EmulateInstruction::EmulateInstruction m_write_mem_callback (write_mem_callback), m_read_reg_callback (read_reg_callback), m_write_reg_callback (write_reg_callback), + m_opcode (), m_opcode_pc (LLDB_INVALID_ADDRESS) { - ::memset (&m_opcode, 0, sizeof (m_opcode)); } uint64_t |