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
diff --git a/lldb/source/Core/Disassembler.cpp b/lldb/source/Core/Disassembler.cpp
index 9625894..efd7081 100644
--- a/lldb/source/Core/Disassembler.cpp
+++ b/lldb/source/Core/Disassembler.cpp
@@ -469,6 +469,14 @@
Instruction::Instruction(const Address &addr) :
m_addr (addr)
{
+ ::memset (&m_opcode, 0, sizeof (m_opcode));
+}
+
+
+Instruction::Instruction(const Address &addr, const Opcode &opcode) :
+ m_addr (addr),
+ m_opcode (opcode)
+{
}
Instruction::~Instruction()