forked from OSchip/llvm-project
Revert "LTOCodeGenerator: handle correctly "unnamed" symbol"
This reverts commit r268658. I incorrectly diagnose this as the source of an assertion during an LTO bootstrap of clang. From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 268680
This commit is contained in:
parent
450a80754f
commit
5eba657ff3
|
@ -364,7 +364,7 @@ void LTOCodeGenerator::preserveDiscardableGVs(
|
|||
}
|
||||
llvm::Type *i8PTy = llvm::Type::getInt8PtrTy(TheModule.getContext());
|
||||
auto mayPreserveGlobal = [&](GlobalValue &GV) {
|
||||
if (!GV.isDiscardableIfUnused() || GV.isDeclaration() || !GV.hasName())
|
||||
if (!GV.isDiscardableIfUnused() || GV.isDeclaration())
|
||||
return;
|
||||
if (!mustPreserveGV(GV))
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue