Skip to content

Commit

Permalink
Wrap new API call in Julia.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Jun 5, 2018
1 parent c2fabd0 commit b027acc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/libLLVM_extra.jl
Expand Up @@ -97,3 +97,11 @@ end
function LLVMGetValueContext(V::LLVMValueRef)
@apicall(:LLVMExtraGetValueContext,LLVMContextRef,(LLVMValueRef,),V)
end

if VERSION >= v"0.7.0-alpha.37"

function LLVMGetSourceLocation(V::LLVMValueRef, index, Name, Filename, Line, Column)
@apicall(:LLVMExtraGetSourceLocation,Cint,(LLVMValueRef,Cint,Ptr{Cstring},Ptr{Cstring},Ptr{Cuint},Ptr{Cuint}), V, index, Name, Filename, Line, Column)
end

end

0 comments on commit b027acc

Please sign in to comment.