diff options
author | Ed Maste <emaste@FreeBSD.org> | 2014-11-25 21:00:58 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2014-11-25 21:00:58 +0000 |
commit | 0cac4ca3916ac24ab6139d03cbfd18db9e715bfe (patch) | |
tree | c94307da318be46e5aeea1a325c1e91749506e4f /source/Target/ABI.cpp | |
parent | 03b99097822ca3ac69252d9afae716a584ed56c4 (diff) | |
download | src-test2-0cac4ca3916ac24ab6139d03cbfd18db9e715bfe.tar.gz src-test2-0cac4ca3916ac24ab6139d03cbfd18db9e715bfe.zip |
Notes
Diffstat (limited to 'source/Target/ABI.cpp')
-rw-r--r-- | source/Target/ABI.cpp | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/source/Target/ABI.cpp b/source/Target/ABI.cpp index 06215221d961..e02f360680fb 100644 --- a/source/Target/ABI.cpp +++ b/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; +} |