From 5800faa31859afb83d556a67747251e20c3e4b48 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 4 Apr 2018 18:27:52 -0400 Subject: [PATCH] update to latest llvm API --- src/target.cpp | 2 +- src/zig_llvm.cpp | 1 + src/zig_llvm.h | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/target.cpp b/src/target.cpp index a8a58013ff..5dcf98c3a2 100644 --- a/src/target.cpp +++ b/src/target.cpp @@ -162,6 +162,7 @@ static const Os os_list[] = { OsZen, }; +// Coordinate with zig_llvm.h static const ZigLLVM_EnvironmentType environ_list[] = { ZigLLVM_UnknownEnvironment, @@ -182,7 +183,6 @@ static const ZigLLVM_EnvironmentType environ_list[] = { ZigLLVM_Itanium, ZigLLVM_Cygnus, ZigLLVM_CoreCLR, - ZigLLVM_OpenCL, ZigLLVM_Simulator, }; diff --git a/src/zig_llvm.cpp b/src/zig_llvm.cpp index 3eb550dcc4..ba915bf064 100644 --- a/src/zig_llvm.cpp +++ b/src/zig_llvm.cpp @@ -37,6 +37,7 @@ #include #include #include +#include #include diff --git a/src/zig_llvm.h b/src/zig_llvm.h index af92850fc4..a63524281a 100644 --- a/src/zig_llvm.h +++ b/src/zig_llvm.h @@ -376,7 +376,6 @@ enum ZigLLVM_EnvironmentType { ZigLLVM_Itanium, ZigLLVM_Cygnus, ZigLLVM_CoreCLR, - ZigLLVM_OpenCL, ZigLLVM_Simulator, ZigLLVM_LastEnvironmentType = ZigLLVM_Simulator