summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_bld_debug.c
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-08-18 21:08:38 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-08-29 09:21:34 +0100
commit556eecea67354068f6e328da6564bef6cb74cb4e (patch)
tree6d2aa140009529d3fafb02814046395f39f9954d /src/gallium/drivers/llvmpipe/lp_bld_debug.c
parent2fef9b3369d1b017a5360d53a75286234ace2c9d (diff)
llvmpipe: Allow to build without udis86.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_bld_debug.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_bld_debug.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_bld_debug.c b/src/gallium/drivers/llvmpipe/lp_bld_debug.c
index f8da1c9f8e..ccbafca8b8 100644
--- a/src/gallium/drivers/llvmpipe/lp_bld_debug.c
+++ b/src/gallium/drivers/llvmpipe/lp_bld_debug.c
@@ -26,7 +26,9 @@
**************************************************************************/
+#ifdef HAVE_UDIS86
#include <udis86.h>
+#endif
#include "util/u_debug.h"
#include "lp_bld_debug.h"
@@ -35,6 +37,7 @@
void
lp_disassemble(const void* func)
{
+#ifdef HAVE_UDIS86
ud_t ud_obj;
ud_init(&ud_obj);
@@ -69,4 +72,7 @@ lp_disassemble(const void* func)
break;
}
debug_printf("\n");
+#else
+ (void)func;
+#endif
}