[Mesa-dev] [PATCH] gallivm: Fix build with LLVM >= 3.6 r215967.
Michel Dänzer
michel at daenzer.net
Tue Aug 19 23:28:05 PDT 2014
On 20.08.2014 15:17, Vinson Lee wrote:
> This LLVM 3.6 commit changed EngineBuilder constructor.
>
> commit 3f4ed32b4398eaf4fe0080d8001ba01e6c2f43c8
> Author: Rafael Espindola <rafael.espindola at gmail.com>
> Date: Tue Aug 19 04:04:25 2014 +0000
>
> Make it explicit that ExecutionEngine takes ownership of the modules.
>
> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215967 91177308-0d34-0410-b5e6-96231b3b80d8
>
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
> src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
> index 6bea964..55aa8b9 100644
> --- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
> +++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
> @@ -421,7 +421,11 @@ lp_build_create_jit_compiler_for_module(LLVMExecutionEngineRef *OutJIT,
> using namespace llvm;
>
> std::string Error;
> +#if HAVE_LLVM >= 0x0306
> + EngineBuilder builder(std::unique_ptr<Module>(unwrap(M)));
> +#else
> EngineBuilder builder(unwrap(M));
> +#endif
>
> /**
> * LLVM 3.1+ haven't more "extern unsigned llvm::StackAlignmentOverride" and
>
I pushed yours, since you beat me by two minutes (and have a more
detailed commit log). :)
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Mesa and X developer
More information about the mesa-dev
mailing list