From b018c64ca2c92f5d6a4d3e5dcdfdc0cf70680027 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 25 Feb 2018 18:09:39 -0500 Subject: [PATCH] add coroutine LLVM passes --- src/zig_llvm.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/zig_llvm.cpp b/src/zig_llvm.cpp index 34defc6dc..16a087cee 100644 --- a/src/zig_llvm.cpp +++ b/src/zig_llvm.cpp @@ -32,6 +32,7 @@ #include #include #include +#include #include #include #include @@ -129,6 +130,8 @@ bool ZigLLVMTargetMachineEmitToFile(LLVMTargetMachineRef targ_machine_ref, LLVMM PMBuilder->Inliner = createFunctionInliningPass(PMBuilder->OptLevel, PMBuilder->SizeLevel, false); } + addCoroutinePassesToExtensionPoints(*PMBuilder); + // Set up the per-function pass manager. legacy::FunctionPassManager FPM = legacy::FunctionPassManager(module); auto tliwp = new(std::nothrow) TargetLibraryInfoWrapperPass(tlii);