projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b61e567
)
gallivm: Pass in CPU name to createTargetMachine when on llvm-3.0.
author
Vinson Lee
<vlee@vmware.com>
Thu, 30 Jun 2011 22:48:41 +0000
(15:48 -0700)
committer
Vinson Lee
<vlee@vmware.com>
Thu, 30 Jun 2011 22:48:41 +0000
(15:48 -0700)
llvm-3.0svn revision 134127 changed createTargetMachine to take in
an additional argument of the CPU name.
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 5036608b571930486205bc0f749b04312bbeb5cc..01e660ef7d9bcc91944b0c42b5d6642067245ff8 100644
(file)
--- a/
src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
+++ b/
src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
@@
-207,7
+207,11
@@
lp_disassemble(const void* func)
}
raw_debug_ostream Out;
+#if HAVE_LLVM >= 0x0300
+ TargetMachine *TM = T->createTargetMachine(Triple, sys::getHostCPUName(), "");
+#else
TargetMachine *TM = T->createTargetMachine(Triple, "");
+#endif
#if HAVE_LLVM >= 0x0300
unsigned int AsmPrinterVariant = AsmInfo->getAssemblerDialect();