summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2013-05-12 20:37:17 -0700
committerTom Stellard <thomas.stellard@amd.com>2013-05-14 09:06:14 -0700
commitff256ec0686bad0ccf3c9df99ba442773efbc181 (patch)
treeffb8f3ec3f4e7527d0888a5cf86c3f5312834b19 /src/gallium/auxiliary
parent36385c0bdfe8883aa9a0ff27cd6d04a2ec753344 (diff)
downloadexternal_mesa3d-ff256ec0686bad0ccf3c9df99ba442773efbc181.zip
external_mesa3d-ff256ec0686bad0ccf3c9df99ba442773efbc181.tar.gz
external_mesa3d-ff256ec0686bad0ccf3c9df99ba442773efbc181.tar.bz2
gallivm: Fix build with LLVM >= 3.4 r181680.
Tested-by: Laurent Carlier <lordheavym@gmail.com> Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_debug.cpp4
1 files changed, 3 insertions, 1 deletions
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));