Only check LLVM_VERSION_MAJOR >= 17 for PassBuilder inclusion

This commit is contained in:
jcmdln
2023-10-15 12:03:56 -04:00
parent d0037fcf6b
commit 8fe431e53e

View File

@@ -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>