summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-05-05 20:44:21 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-05-05 20:44:21 +0000
commit5eba657ff3d696b971d8f36a48a8d0801ab36c31 (patch)
treed3b9c65065b76f2e455de37dbc28d61669906e9b
parent450a80754f41bdd934aa4c9ce65e5763d71e4e3b (diff)
downloadbcm5719-llvm-5eba657ff3d696b971d8f36a48a8d0801ab36c31.tar.gz
bcm5719-llvm-5eba657ff3d696b971d8f36a48a8d0801ab36c31.zip
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
-rw-r--r--llvm/lib/LTO/LTOCodeGenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/LTO/LTOCodeGenerator.cpp b/llvm/lib/LTO/LTOCodeGenerator.cpp
index a7dad55a819..77b827a294b 100644
--- a/llvm/lib/LTO/LTOCodeGenerator.cpp
+++ b/llvm/lib/LTO/LTOCodeGenerator.cpp
@@ -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;
OpenPOWER on IntegriCloud