gallium/gallivm: code generation options for LLVM 3.1+
authorAlexander V. Nikolaev <avn@daemon.hole.ru>
Sun, 23 Sep 2012 02:28:39 +0000 (05:28 +0300)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Sun, 28 Oct 2012 10:34:26 +0000 (10:34 +0000)
commiteaa8e56108e28ff5fabc8c471f4e904b53c5f8fb
tree780268841d125bf38eb555856a8fdd53de846cd9
parent459b28aba7c4ef0afe8d23dd2953e236d1bf7aed
gallium/gallivm: code generation options for LLVM 3.1+

LLVM 3.1+ haven't more "extern unsigned llvm::StackAlignmentOverride"
and friends for configuring code generation options, like stack
alignment.

So I restrict assiging of lvm::StackAlignmentOverride and other
variables to LLVM 3.0 only, and wrote similiar code using
TargetOptions.

This patch fix segfaulting of WINE using llvmpipe built with LLVM 3.1

Signed-off-by: Alexander V. Nikolaev <avn@daemon.hole.ru>
Signed-off-by: José Fonseca <jose.r.fonseca@gmail.com>
src/gallium/auxiliary/gallivm/lp_bld_init.c
src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
src/gallium/auxiliary/gallivm/lp_bld_misc.h