projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45aecf0
)
gallivm: Fix x86 build with llvm-3.0svn.
author
Vinson Lee
<vlee@vmware.com>
Fri, 24 Jun 2011 03:48:05 +0000
(20:48 -0700)
committer
Vinson Lee
<vlee@vmware.com>
Fri, 24 Jun 2011 03:48:05 +0000
(20:48 -0700)
LLVM revision 133739 renamed StackAlignment to StackAlignmentOverride.
src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
index d2d7eccd92fc845e7d9b7d61f2b6acb76f64ccaf..85fabc574b22be88ce0303ef860e6e94e7997724 100644
(file)
--- a/
src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
+++ b/
src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
@@
-83,8
+83,12
@@
lp_set_target_options(void)
* to only assume a 4 bytes alignment for backwards compatibility.
*/
#if defined(PIPE_ARCH_X86)
+#if HAVE_LLVM >= 0x0300
+ llvm::StackAlignmentOverride = 4;
+#else
llvm::StackAlignment = 4;
#endif
+#endif
#if defined(DEBUG) || defined(PROFILE)
llvm::NoFramePointerElim = true;