diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-02-25 15:10:29 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-02-25 15:10:29 -0500 |
| commit | 9f6c5a20de03a59bfcaead703fe9490a6d622f84 (patch) | |
| tree | 206e132f5c6896be9a0386c59cabb59a6591c741 /src/zig_llvm.cpp | |
| parent | 7567448b91fd7012bf61d3f5532bfd86304899ae (diff) | |
| download | zig-9f6c5a20de03a59bfcaead703fe9490a6d622f84.tar.gz zig-9f6c5a20de03a59bfcaead703fe9490a6d622f84.zip | |
codegen for coro_id instruction
See #727
Diffstat (limited to 'src/zig_llvm.cpp')
| -rw-r--r-- | src/zig_llvm.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/zig_llvm.cpp b/src/zig_llvm.cpp index 97c07ab820..34defc6dc6 100644 --- a/src/zig_llvm.cpp +++ b/src/zig_llvm.cpp @@ -182,6 +182,9 @@ bool ZigLLVMTargetMachineEmitToFile(LLVMTargetMachineRef targ_machine_ref, LLVMM return false; } +ZIG_EXTERN_C LLVMTypeRef ZigLLVMTokenTypeInContext(LLVMContextRef context_ref) { + return wrap(Type::getTokenTy(*unwrap(context_ref))); +} LLVMValueRef ZigLLVMBuildCall(LLVMBuilderRef B, LLVMValueRef Fn, LLVMValueRef *Args, unsigned NumArgs, unsigned CC, ZigLLVM_FnInline fn_inline, const char *Name) |
