summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVM.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-05-18 22:01:49 +0000
committerGreg Clayton <gclayton@apple.com>2011-05-18 22:01:49 +0000
commit3f5c08f5c25b5012a1f71a820657324c0ea2f273 (patch)
treee8acd0cdc71964e8ac4e06b9d0ce136c63bf6fc0 /lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVM.cpp
parent8b2e426555a1308e8570565816d61e37862d22f6 (diff)
downloadbcm5719-llvm-3f5c08f5c25b5012a1f71a820657324c0ea2f273.tar.gz
bcm5719-llvm-3f5c08f5c25b5012a1f71a820657324c0ea2f273.zip
Added a function to lldb_private::Address:
addr_t Address::GetCallableLoadAddress (Target *target) const; This will resolve the load address in the Address object and optionally decorate the address up to be able to be called. For all non ARM targets, this just essentially returns the result of "Address::GetLoadAddress (target)". But for ARM targets, it checks if the address is Thumb, and if so, it returns an address with bit zero set to indicate a mode switch to Thumb. This is how we need function pointers to be for return addresses and when resolving function addresses for the JIT. It is also nice to centralize this in one spot to avoid having multiple copies of this code. llvm-svn: 131588
Diffstat (limited to 'lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVM.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud