diff options
author | Vinson Lee <[email protected]> | 2011-06-23 20:48:05 -0700 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2011-06-23 20:48:05 -0700 |
commit | ad7387fe12c034d32da4bf4e078d494cbaca5288 (patch) | |
tree | 0321a8d7a939fd0efe847d2a418d34d6ad8fecc0 /src | |
parent | 45aecf01144341fa1c536f6d5131ae36c374066e (diff) |
gallivm: Fix x86 build with llvm-3.0svn.
LLVM revision 133739 renamed StackAlignment to StackAlignmentOverride.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp index d2d7eccd92f..85fabc574b2 100644 --- 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; |