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 de02be4 commit cfa2462Copy full SHA for cfa2462
src/core/metadata.jl
@@ -1,4 +1,4 @@
1
-export MDString, MDNode, operands
+export MDString, MDNode, operands, Metadata
2
3
@checked struct MetadataAsValue <: Value
4
ref::reftype(Value)
@@ -43,7 +43,8 @@ end
43
@checked struct Metadata
44
ref::API.LLVMMetadataRef
45
end
46
-reftype(::Type{Metadata}) = API.LLVMMetdataRef
+reftype(::Type{Metadata}) = API.LLVMMetadataRef
47
+
48
function Value(md::Metadata, ctx::Context)
49
return MetadataAsValue(API.LLVMMetadataAsValue(ref(ctx), md))
50
0 commit comments