We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87f2b0d commit fd187eaCopy full SHA for fd187ea
src/debuginfo.jl
@@ -3,3 +3,10 @@ export DEBUG_METADATA_VERSION, strip_debuginfo!
3
DEBUG_METADATA_VERSION() = API.LLVMDebugMetadataVersion()
4
5
strip_debuginfo!(mod::Module) = API.LLVMStripModuleDebugInfo(ref(mod))
6
+
7
+if libllvm_version >= v"8.0.0"
8
9
+set_subprogram!(func::Function, sp::Metadata) = LLVM.API.LLVMSetSubprogram(ref(func), ref(sp))
10
+get_subprogram(func::Function) = Metadata(LLVM.API.LLVMGetSubprogram(ref(func)))
11
12
+end
0 commit comments