projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
410aa3e
)
gallivm: Use InitializeNativeTargetDisassembler().
author
ojab
<ojab@ojab.ru>
Tue, 27 Mar 2012 03:05:58 +0000
(07:05 +0400)
committer
José Fonseca
<jfonseca@vmware.com>
Tue, 27 Mar 2012 15:28:30 +0000
(16:28 +0100)
To initialize only native LLVM Disassembler on LLVM >= 3.1.
Signed-off-by: José Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
index b6849cbdcab393f2e7cb88e2f2b9ef50a9237e51..903c8782f8d913a2c2093704f2fe371ae6a8131a 100644
(file)
--- a/
src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
+++ b/
src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
@@
-207,7
+207,9
@@
lp_disassemble(const void* func)
LLVMInitializePowerPCAsmPrinter();
#endif
-#if defined(PIPE_ARCH_X86) || defined(PIPE_ARCH_X86_64)
+#if HAVE_LLVM >= 0x0301
+ InitializeNativeTargetDisassembler();
+#elif defined(PIPE_ARCH_X86) || defined(PIPE_ARCH_X86_64)
LLVMInitializeX86Disassembler();
#elif defined(PIPE_ARCH_ARM)
LLVMInitializeARMDisassembler();