diff options
author | Greg Clayton <gclayton@apple.com> | 2011-05-18 22:01:49 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2011-05-18 22:01:49 +0000 |
commit | 3f5c08f5c25b5012a1f71a820657324c0ea2f273 (patch) | |
tree | e8acd0cdc71964e8ac4e06b9d0ce136c63bf6fc0 /lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVM.cpp | |
parent | 8b2e426555a1308e8570565816d61e37862d22f6 (diff) | |
download | bcm5719-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