diff options
author | Andrew Wilkins <axwalk@gmail.com> | 2015-07-14 01:23:06 +0000 |
---|---|---|
committer | Andrew Wilkins <axwalk@gmail.com> | 2015-07-14 01:23:06 +0000 |
commit | 3bdfc1cd0ccd2e9421e67ebcded5d467eee2bfbf (patch) | |
tree | 7201f7ad75f528d2cfb551d6fefad3e2c8616583 /llvm/include/llvm-c/Core.h | |
parent | d36f614e20a39cc363a4f0b3710cb9962356f645 (diff) | |
download | bcm5719-llvm-3bdfc1cd0ccd2e9421e67ebcded5d467eee2bfbf.tar.gz bcm5719-llvm-3bdfc1cd0ccd2e9421e67ebcded5d467eee2bfbf.zip |
Add capability to get and set the personalitty function from the C API
Summary:
The capability was lost with D10429 where the personality function was set at function level rather than landing pad level. Now there is no way to get/set the personality function from the C API. That is a problem.
Note that the whole thing could be avoided by improving the C API testing, as started by D10725
Reviewers: chandlerc, bogner, majnemer, andrew.w.kaylor, rafael, rnk, axw
Subscribers: rafael, llvm-commits
Differential Revision: http://reviews.llvm.org/D10946
llvm-svn: 242104
Diffstat (limited to 'llvm/include/llvm-c/Core.h')
-rw-r--r-- | llvm/include/llvm-c/Core.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h index 713894f5763..15290072abe 100644 --- a/llvm/include/llvm-c/Core.h +++ b/llvm/include/llvm-c/Core.h @@ -1888,6 +1888,20 @@ LLVMValueRef LLVMAddAlias(LLVMModuleRef M, LLVMTypeRef Ty, LLVMValueRef Aliasee, void LLVMDeleteFunction(LLVMValueRef Fn); /** + * Obtain the personality function attached to the function. + * + * @see llvm::Function::getPersonalityFn() + */ +LLVMValueRef LLVMGetPersonalityFn(LLVMValueRef Fn); + +/** + * Set the personality function attached to the function. + * + * @see llvm::Function::setPersonalityFn() + */ +void LLVMSetPersonalityFn(LLVMValueRef Fn, LLVMValueRef PersonalityFn); + +/** * Obtain the ID number from a function instance. * * @see llvm::Function::getIntrinsicID() |