diff options
| author | Josh Stone <jistone@redhat.com> | 2024-03-15 18:43:19 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2024-03-17 10:11:04 -0700 |
| commit | 29430554f65619007f004e7941b7c2efb6465dbf (patch) | |
| tree | 8c1c25b65e50d352351ebcf59d217c048a722065 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 35dfc67d94c47a6c6ae28c46e7dc1c547f772485 (diff) | |
| download | rust-29430554f65619007f004e7941b7c2efb6465dbf.tar.gz rust-29430554f65619007f004e7941b7c2efb6465dbf.zip | |
Update the minimum external LLVM to 17
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
| -rw-r--r-- | compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp index 91f54da5c12..f6ec410bfac 100644 --- a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp +++ b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp @@ -2152,19 +2152,3 @@ extern "C" LLVMValueRef LLVMConstStringInContext2(LLVMContextRef C, return wrap(ConstantDataArray::getString(*unwrap(C), StringRef(Str, Length), !DontNullTerminate)); } #endif - -// FIXME: Remove when Rust's minimum supported LLVM version reaches 17. -// https://github.com/llvm/llvm-project/commit/35276f16e5a2cae0dfb49c0fbf874d4d2f177acc -#if LLVM_VERSION_LT(17, 0) -extern "C" LLVMValueRef LLVMConstArray2(LLVMTypeRef ElementTy, - LLVMValueRef *ConstantVals, - uint64_t Length) { - ArrayRef<Constant *> V(unwrap<Constant>(ConstantVals, Length), Length); - return wrap(ConstantArray::get(ArrayType::get(unwrap(ElementTy), Length), V)); -} - -extern "C" LLVMTypeRef LLVMArrayType2(LLVMTypeRef ElementTy, - uint64_t ElementCount) { - return wrap(ArrayType::get(unwrap(ElementTy), ElementCount)); -} -#endif |
