From 0f063ba6b41276a18f3f60380ce16fcd58b20484 Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Sat, 2 Mar 2013 00:26:47 +0000 Subject: Convert from the C-based LLVM Disassembler shim to the full MC Disassembler API's. Calculate "can branch" using the MC API's rather than our hand-rolled regex'es. As extra credit, allow setting the disassembly flavor for x86 based architectures to intel or att. llvm-svn: 176392 --- lldb/source/API/SBFunction.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lldb/source/API/SBFunction.cpp') diff --git a/lldb/source/API/SBFunction.cpp b/lldb/source/API/SBFunction.cpp index 028725cbae2..3617c0e5a4c 100644 --- a/lldb/source/API/SBFunction.cpp +++ b/lldb/source/API/SBFunction.cpp @@ -121,6 +121,12 @@ SBFunction::GetDescription (SBStream &s) SBInstructionList SBFunction::GetInstructions (SBTarget target) +{ + return GetInstructions (target, NULL); +} + +SBInstructionList +SBFunction::GetInstructions (SBTarget target, const char *flavor) { SBInstructionList sb_instructions; if (m_opaque_ptr) @@ -139,6 +145,7 @@ SBFunction::GetInstructions (SBTarget target) { sb_instructions.SetDisassembler (Disassembler::DisassembleRange (module_sp->GetArchitecture(), NULL, + flavor, exe_ctx, m_opaque_ptr->GetAddressRange())); } -- cgit v1.2.3