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

Laurent Carlier lordheavym at gmail.com
Mon May 13 09:59:49 PDT 2013


Le dimanche 12 mai 2013 20:37:17 Vinson Lee a écrit :
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
>  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));

Works fine here.
Tested-by: Laurent Carlier <lordheavym at gmail.com> 
-- 
Laurent Carlier
ArchLinux Trusted User
http://www.archlinux.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130513/f1aef1f5/attachment.pgp>


More information about the mesa-dev mailing list