gallivm: Fix build - Remove TargetOptions.RealignStack for llvm>=3.4
authorLaurent Carlier <lordheavym@gmail.com>
Tue, 6 Aug 2013 22:05:25 +0000 (00:05 +0200)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 6 Aug 2013 22:31:48 +0000 (15:31 -0700)
Since llvm -3.4svn r187618, TargetOptions doesn't provide
RealignStack, so only enable it with llvm<3.4

This option must now be specified using function attributes, see LLVM
commit r187618

Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/auxiliary/gallivm/lp_bld_misc.cpp

index e09bb78de17c6d173baf48c1a4877db1a4fae69c..e8d2db292ea345caa6c88ef3f15578644e89b46a 100644 (file)
@@ -273,8 +273,10 @@ lp_build_create_jit_compiler_for_module(LLVMExecutionEngineRef *OutJIT,
    TargetOptions options;
 #if defined(PIPE_ARCH_X86)
    options.StackAlignmentOverride = 4;
+#if HAVE_LLVM < 0x0304
    options.RealignStack = true;
 #endif
+#endif
 
 #if defined(DEBUG)
    options.JITEmitDebugInfo = true;