gallivm: fix build with llvm 3.0svn
authorBrian Paul <brianp@vmware.com>
Wed, 21 Sep 2011 13:24:00 +0000 (07:24 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 21 Sep 2011 13:24:03 +0000 (07:24 -0600)
https://bugs.freedesktop.org/show_bug.cgi?id=41065

src/gallium/auxiliary/gallivm/lp_bld_debug.cpp

index b9892d6157fd3c657226497c4b6eb04d4c2daafd..f44749d63ab791e4b277ab5a278e5ea812a37841 100644 (file)
@@ -272,7 +272,11 @@ lp_disassemble(const void* func)
 
       if (!DisAsm->getInstruction(Inst, Size, memoryObject,
                                  pc,
-                                 nulls())) {
+#if HAVE_LLVM >= 0x0300
+                                 nulls(), nulls())) {
+#else
+                                 nulls())) {
+#endif
          debug_printf("invalid\n");
          pc += 1;
       }
@@ -295,7 +299,9 @@ lp_disassemble(const void* func)
        * Print the instruction.
        */
 
-#if HAVE_LLVM >= 0x208
+#if HAVE_LLVM >= 0x0300
+      Printer->printInst(&Inst, Out, "");
+#elif HAVE_LLVM >= 0x208
       Printer->printInst(&Inst, Out);
 #else
       Printer->printInst(&Inst);