mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-26 07:56:43 +00:00
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> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268680 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9281534899
commit
0e8fd429e3
@ -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…
x
Reference in New Issue
Block a user