Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ir.go
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,9 @@ func (v Value) Metadata(kind int) (rv Value) {
func (v Value) SetMetadata(kind int, node Metadata) {
C.LLVMSetMetadata2(v.C, C.unsigned(kind), node.C)
}
func (v Value) SetGlobalMetadata(kind int, node Metadata) {
C.LLVMGlobalSetMetadata(v.C, C.unsigned(kind), node.C)
}

// Obtain the string value of the instruction. Same as would be printed with
// Value.Dump() (with two spaces at the start but no newline at the end).
Expand Down
Loading