1
Fork 0

rename Triple to Target

This commit is contained in:
Zequan Wu 2025-03-06 22:52:20 -08:00
parent 4e4bed8684
commit 8814679a54

View file

@ -152,11 +152,11 @@ extern "C" LLVMContextRef LLVMRustContextCreate(bool shouldDiscardNames) {
} }
extern "C" void LLVMRustSetNormalizedTarget(LLVMModuleRef M, extern "C" void LLVMRustSetNormalizedTarget(LLVMModuleRef M,
const char *Triple) { const char *Target) {
#if LLVM_VERSION_GE(21, 0) #if LLVM_VERSION_GE(21, 0)
unwrap(M)->setTargetTriple(llvm::Triple(Triple::normalize(Triple))); unwrap(M)->setTargetTriple(Triple(Triple::normalize(Target)));
#else #else
unwrap(M)->setTargetTriple(Triple::normalize(Triple)); unwrap(M)->setTargetTriple(Triple::normalize(Target));
#endif #endif
} }