From 0ae962735fe3f58cd36bface32a4268bc7493178 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Thu, 24 Mar 2011 23:53:38 +0000 Subject: 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 --- lldb/source/Core/Opcode.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lldb/source/Core/Opcode.cpp (limited to 'lldb/source/Core/Opcode.cpp') diff --git a/lldb/source/Core/Opcode.cpp b/lldb/source/Core/Opcode.cpp new file mode 100644 index 00000000000..cb0b4d038b6 --- /dev/null +++ b/lldb/source/Core/Opcode.cpp @@ -0,0 +1,18 @@ +//===-- Baton.cpp -----------------------------------------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#include "lldb/Core/Opcode.h" + +// C Includes +// C++ Includes +// Other libraries and framework includes +// Project includes + +using namespace lldb; +using namespace lldb_private; \ No newline at end of file -- cgit v1.2.3