diff options
| author | whitequark <whitequark@whitequark.org> | 2018-09-28 17:39:59 +0000 |
|---|---|---|
| committer | whitequark <whitequark@whitequark.org> | 2018-09-28 17:39:59 +0000 |
| commit | 58aed9fb2ec827cf339c96a18083e0c16185c482 (patch) | |
| tree | 26491289ed163a7cadf4527c24d9014346e8f9b7 /llvm/bindings | |
| parent | 418af6f6cf97e9484e7f40576f96d2cd9c781e53 (diff) | |
| download | bcm5719-llvm-58aed9fb2ec827cf339c96a18083e0c16185c482.tar.gz bcm5719-llvm-58aed9fb2ec827cf339c96a18083e0c16185c482.zip | |
[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
Diffstat (limited to 'llvm/bindings')
| -rw-r--r-- | llvm/bindings/go/llvm/ir.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/bindings/go/llvm/ir.go b/llvm/bindings/go/llvm/ir.go index b3bf7ffebe0..0f4877429cc 100644 --- a/llvm/bindings/go/llvm/ir.go +++ b/llvm/bindings/go/llvm/ir.go @@ -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 } |

