clover: Fix build after clang r348827
authorJan Vesely <jan.vesely@rutgers.edu>
Thu, 13 Dec 2018 20:53:42 +0000 (15:53 -0500)
committerJan Vesely <jan.vesely@rutgers.edu>
Sun, 16 Dec 2018 11:38:10 +0000 (06:38 -0500)
CodeGenOptions were moved to Basic.

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Aaron Watry <awatry@gmail.com>
Tested-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Kai Wasserbäch <kai@dev.carbon-project.org>
CC: mesa-stable@lists.freedesktop.org
src/gallium/state_trackers/clover/llvm/compat.hpp

index 975012cbda4368e42c47ceb653155ff42a55ee4b..b91cb95a29561ba06d51220ff995ab906c79dd1e 100644 (file)
 #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 {