Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 268a153

Browse files
committedOct 19, 2024·
llvm: Delete LLVMRustSetComdat
1 parent 20fcc4f commit 268a153

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed
 

‎compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp

-10
Original file line numberDiff line numberDiff line change
@@ -1658,16 +1658,6 @@ extern "C" void LLVMRustPositionBuilderAtStart(LLVMBuilderRef B,
16581658
unwrap(B)->SetInsertPoint(unwrap(BB), Point);
16591659
}
16601660

1661-
extern "C" void LLVMRustSetComdat(LLVMModuleRef M, LLVMValueRef V,
1662-
const char *Name, size_t NameLen) {
1663-
Triple TargetTriple = Triple(unwrap(M)->getTargetTriple());
1664-
GlobalObject *GV = unwrap<GlobalObject>(V);
1665-
if (TargetTriple.supportsCOMDAT()) {
1666-
StringRef NameRef(Name, NameLen);
1667-
GV->setComdat(unwrap(M)->getOrInsertComdat(NameRef));
1668-
}
1669-
}
1670-
16711661
enum class LLVMRustLinkage {
16721662
ExternalLinkage = 0,
16731663
AvailableExternallyLinkage = 1,

0 commit comments

Comments
 (0)
Please sign in to comment.