llvm.org GIT mirror llvm / eb5f10b
[bindings/go] Add Go bindings to the Token type Summary: This type is necessary for implementing coroutines. Reviewers: whitequark Reviewed By: whitequark Subscribers: modocache, llvm-commits Differential Revision: https://reviews.llvm.org/D47684 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@343345 91177308-0d34-0410-b5e6-96231b3b80d8 whitequark 11 months ago
1 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
211211 PointerTypeKind TypeKind = C.LLVMPointerTypeKind
212212 VectorTypeKind TypeKind = C.LLVMVectorTypeKind
213213 MetadataTypeKind TypeKind = C.LLVMMetadataTypeKind
214 TokenTypeKind TypeKind = C.LLVMTokenTypeKind
214215 )
215216
216217 //-------------------------------------------------------------------------
664665 // Operations on other types
665666 func (c Context) VoidType() (t Type) { t.C = C.LLVMVoidTypeInContext(c.C); return }
666667 func (c Context) LabelType() (t Type) { t.C = C.LLVMLabelTypeInContext(c.C); return }
668 func (c Context) TokenType() (t Type) { t.C = C.LLVMTokenTypeInContext(c.C); return }
667669
668670 func VoidType() (t Type) { t.C = C.LLVMVoidType(); return }
669671 func LabelType() (t Type) { t.C = C.LLVMLabelType(); return }