diff options
| author | Zequan Wu <zequanwu@google.com> | 2025-03-06 22:52:20 -0800 |
|---|---|---|
| committer | Zequan Wu <zequanwu@google.com> | 2025-03-06 22:52:20 -0800 |
| commit | 8814679a5410b8d9ce8385094ec8ec888395b1a5 (patch) | |
| tree | dcc0e4228a08f56f46167642a4784b923dd46a04 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 4e4bed8684a7144c82ea95aa013e7911dd9fe20d (diff) | |
| download | rust-8814679a5410b8d9ce8385094ec8ec888395b1a5.tar.gz rust-8814679a5410b8d9ce8385094ec8ec888395b1a5.zip | |
rename Triple to Target
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
| -rw-r--r-- | compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp index 6d01095ccca..53df59930f4 100644 --- a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp +++ b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp @@ -152,11 +152,11 @@ extern "C" LLVMContextRef LLVMRustContextCreate(bool shouldDiscardNames) { } extern "C" void LLVMRustSetNormalizedTarget(LLVMModuleRef M, - const char *Triple) { + const char *Target) { #if LLVM_VERSION_GE(21, 0) - unwrap(M)->setTargetTriple(llvm::Triple(Triple::normalize(Triple))); + unwrap(M)->setTargetTriple(Triple(Triple::normalize(Target))); #else - unwrap(M)->setTargetTriple(Triple::normalize(Triple)); + unwrap(M)->setTargetTriple(Triple::normalize(Target)); #endif } |
