Drop support for LLVM < 14

LLVM 14 is the first version supporting both new pass manager and
opaque IR pointers.
This commit is contained in:
Martin Kinkelin 2024-05-12 03:20:29 +02:00
parent 59c0c60a10
commit e7091dd0c7
58 changed files with 85 additions and 10856 deletions

View file

@ -111,12 +111,7 @@ FileName runCPreprocessor(FileName csrcfile, const Loc &loc,
args.push_back("/nologo");
args.push_back("/P"); // preprocess only
const bool isClangCl = llvm::StringRef(cc)
#if LDC_LLVM_VER >= 1300
.contains_insensitive("clang-cl");
#else
.contains_lower("clang-cl");
#endif
const bool isClangCl = llvm::StringRef(cc).contains_insensitive("clang-cl");
if (!isClangCl) {
args.push_back("/PD"); // print all macro definitions