gallivm: Fix build with LLVM >= 3.4 r181680. 94/6594/1
authorVinson Lee <vlee@freedesktop.org>
Mon, 13 May 2013 03:37:17 +0000 (20:37 -0700)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 14 May 2013 16:06:14 +0000 (09:06 -0700)
Tested-by: Laurent Carlier <lordheavym@gmail.com>
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
src/gallium/auxiliary/gallivm/lp_bld_debug.cpp

index 86617d4..1c886ea 100644 (file)
@@ -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));