diff options
author | Greg Clayton <gclayton@apple.com> | 2011-09-26 07:11:27 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2011-09-26 07:11:27 +0000 |
commit | 8f7180b11e024406e50ed53e27c95af461e6ec4d (patch) | |
tree | 58923ba4e035f927163db21665e0d69d20699317 /lldb/source/Core/Opcode.cpp | |
parent | 1748b37acd1826d9f02f75fbace1be49a596eae1 (diff) | |
download | bcm5719-llvm-8f7180b11e024406e50ed53e27c95af461e6ec4d.tar.gz bcm5719-llvm-8f7180b11e024406e50ed53e27c95af461e6ec4d.zip |
Added more functionality to the public API to allow for better
symbolication. Also improved the SBInstruction API to allow
access to the instruction opcode name, mnemonics, comment and
instruction data.
Added the ability to edit SBLineEntry objects (change the file,
line and column), and also allow SBSymbolContext objects to be
modified (set module, comp unit, function, block, line entry
or symbol).
The SymbolContext and SBSymbolContext can now generate inlined
call stack infomration for symbolication much easier using the
SymbolContext::GetParentInlinedFrameInfo(...) and
SBSymbolContext::GetParentInlinedFrameInfo(...) methods.
llvm-svn: 140518
Diffstat (limited to 'lldb/source/Core/Opcode.cpp')
-rw-r--r-- | lldb/source/Core/Opcode.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lldb/source/Core/Opcode.cpp b/lldb/source/Core/Opcode.cpp index b765bf7dd1d..489a61a353a 100644 --- a/lldb/source/Core/Opcode.cpp +++ b/lldb/source/Core/Opcode.cpp @@ -14,6 +14,7 @@ // Other libraries and framework includes // Project includes #include "lldb/Core/Stream.h" +#include "lldb/Host/Endian.h" using namespace lldb; using namespace lldb_private; @@ -62,3 +63,19 @@ Opcode::Dump (Stream *s, uint32_t min_byte_width) return bytes_written; } +lldb::ByteOrder +Opcode::GetDataByteOrder () const +{ + switch (m_type) + { + case Opcode::eTypeInvalid: break; + case Opcode::eType8: + case Opcode::eType16: + case Opcode::eType32: + case Opcode::eType64: return lldb::endian::InlHostByteOrder(); + case Opcode::eTypeBytes: + break; + } + return eByteOrderInvalid; +} + |