We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cca6e5 commit 9ce1bafCopy full SHA for 9ce1baf
lib/IRGen/GenDecl.cpp
@@ -1030,15 +1030,6 @@ bool LinkInfo::isUsed(IRLinkage IRL) {
1030
///
1031
/// This value must have a definition by the time the module is finalized.
1032
void IRGenModule::addUsedGlobal(llvm::GlobalValue *global) {
1033
-
1034
- // As of reviews.llvm.org/D97448 "ELF: Create unique SHF_GNU_RETAIN sections
1035
- // for llvm.used global objects" LLVM creates separate sections for globals in
1036
- // llvm.used on ELF. Therefore we use llvm.compiler.used on ELF instead.
1037
- if (TargetInfo.OutputObjectFormat == llvm::Triple::ELF) {
1038
- addCompilerUsedGlobal(global);
1039
- return;
1040
- }
1041
1042
LLVMUsed.push_back(global);
1043
}
1044
0 commit comments