about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/SymbolWrapper.cpp
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2024-09-17 12:37:45 -0700
committerJosh Stone <jistone@redhat.com>2024-09-18 13:53:31 -0700
commit6fd8a5068034ad8a60704ef72e335d1b4c32cfd4 (patch)
tree426816820267f166b8c346ca48502b49152cd508 /compiler/rustc_llvm/llvm-wrapper/SymbolWrapper.cpp
parentf79a912d9edc3ad4db910c0e93672ed5c65133fa (diff)
downloadrust-6fd8a5068034ad8a60704ef72e335d1b4c32cfd4.tar.gz
rust-6fd8a5068034ad8a60704ef72e335d1b4c32cfd4.zip
Update the minimum external LLVM to 18
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/SymbolWrapper.cpp')
-rw-r--r--compiler/rustc_llvm/llvm-wrapper/SymbolWrapper.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/SymbolWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/SymbolWrapper.cpp
index d625935d925..54ee79dc290 100644
--- a/compiler/rustc_llvm/llvm-wrapper/SymbolWrapper.cpp
+++ b/compiler/rustc_llvm/llvm-wrapper/SymbolWrapper.cpp
@@ -150,11 +150,9 @@ extern "C" bool LLVMRustIsECObject(char *BufPtr, size_t BufLen) {
     return cast<llvm::object::COFFObjectFile>(&*Obj)->getMachine() !=
            COFF::IMAGE_FILE_MACHINE_ARM64;
 
-#if LLVM_VERSION_GE(18, 0)
   if (Obj->isCOFFImportFile())
     return cast<llvm::object::COFFImportFile>(&*Obj)->getMachine() !=
            COFF::IMAGE_FILE_MACHINE_ARM64;
-#endif
 
   if (Obj->isIR()) {
     Expected<std::string> TripleStr =