rename Triple to Target
This commit is contained in:
parent
4e4bed8684
commit
8814679a54
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue