llvmpipe: drop LLVM < 3.4 support
authorEric Engestrom <eric.engestrom@intel.com>
Sat, 16 Nov 2019 10:25:21 +0000 (10:25 +0000)
committerMatt Turner <mattst88@gmail.com>
Wed, 22 Jan 2020 19:21:13 +0000 (11:21 -0800)
We don't support < 3.9 anymore, so this code is dead.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2760>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2760>

src/gallium/drivers/llvmpipe/lp_jit.c

index f4339e4c5dc58c38807c0a339a481712613f9f10..00b6477f98ceb1e19789dd41061d331ff09dc510 100644 (file)
@@ -401,13 +401,9 @@ lp_jit_create_cs_types(struct lp_compute_shader_variant *lp)
    }
 
    if (gallivm_debug & GALLIVM_DEBUG_IR) {
-#if (LLVM_VERSION_MAJOR > 3 || (LLVM_VERSION_MAJOR == 3 && LLVM_VERSION_MINOR >= 4))
       char *str = LLVMPrintModuleToString(gallivm->module);
       fprintf(stderr, "%s", str);
       LLVMDisposeMessage(str);
-#else
-      LLVMDumpModule(gallivm->module);
-#endif
    }
 }