[PATCH] D47684: [bindings/go] Add Go bindings to the Token type
whitequark via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 28 10:42:15 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL343345: [bindings/go] Add Go bindings to the Token type (authored by whitequark, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D47684?vs=149631&id=167512#toc
Repository:
rL LLVM
https://reviews.llvm.org/D47684
Files:
llvm/trunk/bindings/go/llvm/ir.go
Index: llvm/trunk/bindings/go/llvm/ir.go
===================================================================
--- llvm/trunk/bindings/go/llvm/ir.go
+++ llvm/trunk/bindings/go/llvm/ir.go
@@ -212,6 +212,7 @@
PointerTypeKind TypeKind = C.LLVMPointerTypeKind
VectorTypeKind TypeKind = C.LLVMVectorTypeKind
MetadataTypeKind TypeKind = C.LLVMMetadataTypeKind
+ TokenTypeKind TypeKind = C.LLVMTokenTypeKind
)
//-------------------------------------------------------------------------
@@ -665,6 +666,7 @@
// Operations on other types
func (c Context) VoidType() (t Type) { t.C = C.LLVMVoidTypeInContext(c.C); return }
func (c Context) LabelType() (t Type) { t.C = C.LLVMLabelTypeInContext(c.C); return }
+func (c Context) TokenType() (t Type) { t.C = C.LLVMTokenTypeInContext(c.C); return }
func VoidType() (t Type) { t.C = C.LLVMVoidType(); return }
func LabelType() (t Type) { t.C = C.LLVMLabelType(); return }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47684.167512.patch
Type: text/x-patch
Size: 934 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180928/2fdc850f/attachment.bin>
More information about the llvm-commits
mailing list