gallivm: Fix x86 build with llvm-3.0svn.
authorVinson Lee <vlee@vmware.com>
Fri, 24 Jun 2011 03:48:05 +0000 (20:48 -0700)
committerVinson 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

index d2d7eccd92fc845e7d9b7d61f2b6acb76f64ccaf..85fabc574b22be88ce0303ef860e6e94e7997724 100644 (file)
@@ -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;