Skip to content

Commit

Permalink
rename Triple to Target
Browse files Browse the repository at this point in the history
  • Loading branch information
ZequanWu committed Mar 7, 2025
1 parent 4e4bed8 commit 8814679
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 8814679

Please sign in to comment.