diff options
author | Deepak Panickal <deepak@codeplay.com> | 2014-07-21 17:21:01 +0000 |
---|---|---|
committer | Deepak Panickal <deepak@codeplay.com> | 2014-07-21 17:21:01 +0000 |
commit | 2526ee5a2ddd8e0d169ce7999bc683df43c302bc (patch) | |
tree | 1c4f5e0a4d90b56486d17159883f0fd6bc42758f /lldb/source/Target | |
parent | ca238a7b82124a7767bdecee724d8d262865b5cb (diff) | |
download | bcm5719-llvm-2526ee5a2ddd8e0d169ce7999bc683df43c302bc.tar.gz bcm5719-llvm-2526ee5a2ddd8e0d169ce7999bc683df43c302bc.zip |
ABI for the Hexagon DSP
llvm-svn: 213566
Diffstat (limited to 'lldb/source/Target')
-rw-r--r-- | lldb/source/Target/ABI.cpp | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/lldb/source/Target/ABI.cpp b/lldb/source/Target/ABI.cpp index 06215221d96..e02f360680f 100644 --- a/lldb/source/Target/ABI.cpp +++ b/lldb/source/Target/ABI.cpp @@ -51,7 +51,6 @@ ABI::~ABI() { } - bool ABI::GetRegisterInfoByName (const ConstString &name, RegisterInfo &info) { @@ -172,4 +171,37 @@ ABI::GetReturnValueObject (Thread &thread, return return_valobj_sp; } +ValueObjectSP +ABI::GetReturnValueObject(Thread &thread, llvm::Type &ast_type, bool persistent) const +{ + ValueObjectSP return_valobj_sp; + return_valobj_sp = GetReturnValueObjectImpl( thread, ast_type ); + return return_valobj_sp; +} + +// specialized to work with llvm IR types +// +// for now we will specify a default implementation so that we don't need to +// modify other ABIs +lldb::ValueObjectSP +ABI::GetReturnValueObjectImpl( Thread &thread, llvm::Type &ir_type ) const +{ + ValueObjectSP return_valobj_sp; + + /* this is a dummy and will only be called if an ABI does not override this */ + + return return_valobj_sp; +} +bool +ABI::PrepareTrivialCall (Thread &thread, + lldb::addr_t sp, + lldb::addr_t functionAddress, + lldb::addr_t returnAddress, + llvm::Type &returntype, + llvm::ArrayRef<ABI::CallArgument> args) const +{ + // dummy prepare trivial call + assert( !"Should never get here!" ); + return false; +} |