diff options
author | Jan Vesely <[email protected]> | 2018-12-13 15:53:42 -0500 |
---|---|---|
committer | Jan Vesely <[email protected]> | 2018-12-16 06:38:10 -0500 |
commit | e4f9a37ace750646fd75fbbdff9b5e77a0b26cfb (patch) | |
tree | 93773c1e01fe3aee2bb05c3fc1339d2df412648e /src | |
parent | d512b35b62ff928b880a67887d36f1568aaa5e4b (diff) |
clover: Fix build after clang r348827
CodeGenOptions were moved to Basic.
Signed-off-by: Jan Vesely <[email protected]>
Reviewed-by: Aaron Watry <[email protected]>
Tested-by: Aaron Watry <[email protected]>
Reviewed-by: Kai Wasserbäch <[email protected]>
CC: [email protected]
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/state_trackers/clover/llvm/compat.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/clover/llvm/compat.hpp b/src/gallium/state_trackers/clover/llvm/compat.hpp index 975012cbda4..b91cb95a295 100644 --- a/src/gallium/state_trackers/clover/llvm/compat.hpp +++ b/src/gallium/state_trackers/clover/llvm/compat.hpp @@ -58,9 +58,14 @@ #include <llvm/Analysis/TargetLibraryInfo.h> #include <clang/Basic/TargetInfo.h> -#include <clang/Frontend/CodeGenOptions.h> #include <clang/Frontend/CompilerInstance.h> +#if HAVE_LLVM >= 0x0800 +#include <clang/Basic/CodeGenOptions.h> +#else +#include <clang/Frontend/CodeGenOptions.h> +#endif + namespace clover { namespace llvm { namespace compat { |