Skip to content

Commit 8814679

Browse files
committed
rename Triple to Target
1 parent 4e4bed8 commit 8814679

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,11 @@ extern "C" LLVMContextRef LLVMRustContextCreate(bool shouldDiscardNames) {
152152
}
153153

154154
extern "C" void LLVMRustSetNormalizedTarget(LLVMModuleRef M,
155-
const char *Triple) {
155+
const char *Target) {
156156
#if LLVM_VERSION_GE(21, 0)
157-
unwrap(M)->setTargetTriple(llvm::Triple(Triple::normalize(Triple)));
157+
unwrap(M)->setTargetTriple(Triple(Triple::normalize(Target)));
158158
#else
159-
unwrap(M)->setTargetTriple(Triple::normalize(Triple));
159+
unwrap(M)->setTargetTriple(Triple::normalize(Target));
160160
#endif
161161
}
162162

0 commit comments

Comments
 (0)