mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-22 11:55:12 +00:00
[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 llvm-svn: 343345
This commit is contained in:
parent
c58e7107ed
commit
5762149801
@ -212,6 +212,7 @@ const (
|
||||
PointerTypeKind TypeKind = C.LLVMPointerTypeKind
|
||||
VectorTypeKind TypeKind = C.LLVMVectorTypeKind
|
||||
MetadataTypeKind TypeKind = C.LLVMMetadataTypeKind
|
||||
TokenTypeKind TypeKind = C.LLVMTokenTypeKind
|
||||
)
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
@ -665,6 +666,7 @@ func (t Type) VectorSize() int { return int(C.LLVMGetVectorSize(t.C)) }
|
||||
// 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 }
|
||||
|
Loading…
x
Reference in New Issue
Block a user