[Mesa-dev] [PATCH] clover: fix building since llvm r286566
Tom Stellard
tom at stellard.net
Fri Nov 11 15:51:34 UTC 2016
On Fri, Nov 11, 2016 at 02:00:26PM +0100, Laurent Carlier wrote:
Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
> pretty trivial fix
> ---
> src/gallium/state_trackers/clover/llvm/codegen/bitcode.cpp | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/src/gallium/state_trackers/clover/llvm/codegen/bitcode.cpp b/src/gallium/state_trackers/clover/llvm/codegen/bitcode.cpp
> index 108f8d5..8e89a49 100644
> --- a/src/gallium/state_trackers/clover/llvm/codegen/bitcode.cpp
> +++ b/src/gallium/state_trackers/clover/llvm/codegen/bitcode.cpp
> @@ -37,7 +37,12 @@
> #include "util/algorithm.hpp"
>
> #include <map>
> +#if HAVE_LLVM < 0x0400
> #include <llvm/Bitcode/ReaderWriter.h>
> +#else
> +#include <llvm/Bitcode/BitcodeReader.h>
> +#include <llvm/Bitcode/BitcodeWriter.h>
> +#endif
> #include <llvm/Support/raw_ostream.h>
>
> using namespace clover;
> --
> 2.10.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list