[Mesa-dev] [PATCH] gallivm: Fix build with LLVM >= 3.4 r181680.

Tom Stellard tom at stellard.net
Tue May 14 09:08:02 PDT 2013


On Sun, May 12, 2013 at 08:37:17PM -0700, Vinson Lee wrote:
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---

Thanks Vinson, I've pushed this patch.

>  src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
> index 86617d4..1c886ea 100644
> --- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
> +++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
> @@ -212,7 +212,9 @@ disassemble(const void* func, llvm::raw_ostream & Out)
>     std::string Error;
>     const Target *T = TargetRegistry::lookupTarget(Triple, Error);
>  
> -#if HAVE_LLVM >= 0x0300
> +#if HAVE_LLVM >= 0x0304
> +   OwningPtr<const MCAsmInfo> AsmInfo(T->createMCAsmInfo(*T->createMCRegInfo(Triple), Triple));
> +#elif HAVE_LLVM >= 0x0300
>     OwningPtr<const MCAsmInfo> AsmInfo(T->createMCAsmInfo(Triple));
>  #else
>     OwningPtr<const MCAsmInfo> AsmInfo(T->createAsmInfo(Triple));
> -- 
> 1.8.2.1
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list