Prepare call/invoke for opaque pointers
Rather than relying on `getPointerElementType()` from LLVM function pointers, we now pass the function type explicitly when building `call` or `invoke` instructions.
This commit is contained in:
parent
61a941b8ba
commit
183d79cc09
15 changed files with 168 additions and 151 deletions
|
@ -1155,6 +1155,7 @@ extern "C" {
|
|||
) -> &'a Value;
|
||||
pub fn LLVMRustBuildInvoke(
|
||||
B: &Builder<'a>,
|
||||
Ty: &'a Type,
|
||||
Fn: &'a Value,
|
||||
Args: *const &'a Value,
|
||||
NumArgs: c_uint,
|
||||
|
@ -1526,6 +1527,7 @@ extern "C" {
|
|||
pub fn LLVMRustGetInstrProfIncrementIntrinsic(M: &Module) -> &'a Value;
|
||||
pub fn LLVMRustBuildCall(
|
||||
B: &Builder<'a>,
|
||||
Ty: &'a Type,
|
||||
Fn: &'a Value,
|
||||
Args: *const &'a Value,
|
||||
NumArgs: c_uint,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue