[PATCH] D47684: [bindings/go] Add Go bindings to the Token type
Ayke via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 3 06:25:55 PDT 2018
aykevl created this revision.
aykevl added a reviewer: whitequark.
Herald added a subscriber: modocache.
This type is necessary for implementing coroutines.
Repository:
rL LLVM
https://reviews.llvm.org/D47684
Files:
bindings/go/llvm/ir.go
Index: bindings/go/llvm/ir.go
===================================================================
--- bindings/go/llvm/ir.go
+++ bindings/go/llvm/ir.go
@@ -211,6 +212,7 @@
PointerTypeKind TypeKind = C.LLVMPointerTypeKind
VectorTypeKind TypeKind = C.LLVMVectorTypeKind
MetadataTypeKind TypeKind = C.LLVMMetadataTypeKind
+ TokenTypeKind TypeKind = C.LLVMTokenTypeKind
)
//-------------------------------------------------------------------------
@@ -655,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.149631.patch
Type: text/x-patch
Size: 901 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180603/6aae6af0/attachment.bin>
More information about the llvm-commits
mailing list