mirror of
https://github.com/odin-lang/Odin.git
synced 2026-03-03 15:18:20 +00:00
Only check LLVM_VERSION_MAJOR >= 17 for PassBuilder inclusion
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
#include <llvm-c/Object.h>
|
||||
#include <llvm-c/BitWriter.h>
|
||||
#include <llvm-c/DebugInfo.h>
|
||||
#if LLVM_VERSION_MAJOR >= 17 && (LLVM_VERSION_MINOR > 0 || (LLVM_VERSION_MINOR == 0 && LLVM_VERSION_PATCH > 0))
|
||||
#if LLVM_VERSION_MAJOR >= 17
|
||||
#include <llvm-c/Transforms/PassBuilder.h>
|
||||
#else
|
||||
#include <llvm-c/Transforms/AggressiveInstCombine.h>
|
||||
|
||||
Reference in New Issue
Block a user