summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBInstruction.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-04-13 00:07:34 +0000
committerGreg Clayton <gclayton@apple.com>2012-04-13 00:07:34 +0000
commitc8e0c244e4efb7ac9831e535380bfa41b22ebfc2 (patch)
tree25d10ecc74bdb83f03a78c09b34c71ffb3454398 /lldb/source/API/SBInstruction.cpp
parent27db0b37540268ae48c56cb7409bf6bbf713f6b2 (diff)
downloadbcm5719-llvm-c8e0c244e4efb7ac9831e535380bfa41b22ebfc2.tar.gz
bcm5719-llvm-c8e0c244e4efb7ac9831e535380bfa41b22ebfc2.zip
Expose GetAddressClass() from both the SBAddress and SBInstruction so clients can tell the difference between ARM/Thumb opcodes when disassembling ARM.
llvm-svn: 154633
Diffstat (limited to 'lldb/source/API/SBInstruction.cpp')
-rw-r--r--lldb/source/API/SBInstruction.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/source/API/SBInstruction.cpp b/lldb/source/API/SBInstruction.cpp
index 0a7bb73fa6f..996b01debc0 100644
--- a/lldb/source/API/SBInstruction.cpp
+++ b/lldb/source/API/SBInstruction.cpp
@@ -237,3 +237,11 @@ SBInstruction::TestEmulation (lldb::SBStream &output_stream, const char *test_f
return m_opaque_sp->TestEmulation (output_stream.get(), test_file);
}
+
+lldb::AddressClass
+SBInstruction::GetAddressClass ()
+{
+ if (m_opaque_sp.get())
+ return m_opaque_sp->GetAddressClass();
+ return eAddressClassInvalid;
+}
OpenPOWER on IntegriCloud