[Mesa-dev] [PATCH] clover: Fix include of CodeGenOptions.h, upstream moved it in r348827
Kai Wasserbäch
kai at dev.carbon-project.org
Sat Dec 15 08:11:24 UTC 2018
Hey,
I'm just noticing, that there's also a bug report for this, so please add
Bugzilla: https://bugs.freedesktop.org/109039
before commiting this, in case you accept it (I don't have commit access).
Cheers,
Kai
Kai Wasserbäch wrote on 14.12.18 17:26:
> Signed-off-by: Kai Wasserbäch <kai at dev.carbon-project.org>
> ---
> src/gallium/state_trackers/clover/llvm/compat.hpp | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/src/gallium/state_trackers/clover/llvm/compat.hpp b/src/gallium/state_trackers/clover/llvm/compat.hpp
> index 975012cbda..9c5b9d8917 100644
> --- a/src/gallium/state_trackers/clover/llvm/compat.hpp
> +++ b/src/gallium/state_trackers/clover/llvm/compat.hpp
> @@ -58,7 +58,11 @@
> #include <llvm/Analysis/TargetLibraryInfo.h>
>
> #include <clang/Basic/TargetInfo.h>
> +#if HAVE_LLVM >= 0x0800
> +#include <clang/Basic/CodeGenOptions.h>
> +#else
> #include <clang/Frontend/CodeGenOptions.h>
> +#endif
> #include <clang/Frontend/CompilerInstance.h>
>
> namespace clover {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20181215/b1f91673/attachment-0001.sig>
More information about the mesa-dev
mailing list