mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-28 10:46:11 +00:00
[LTO] - Simplify. NFC.
llvm-svn: 324076
This commit is contained in:
parent
76c5fae2a0
commit
f5de271a92
@ -402,9 +402,8 @@ Error lto::backend(Config &C, AddStreamFn AddStream,
|
||||
static void dropDeadSymbols(Module &Mod, const GVSummaryMapTy &DefinedGlobals,
|
||||
const ModuleSummaryIndex &Index) {
|
||||
auto MaybeDrop = [&](GlobalValue &GV) {
|
||||
auto It = DefinedGlobals.find(GV.getGUID());
|
||||
if (It != DefinedGlobals.end())
|
||||
if (!Index.isGlobalValueLive(It->second))
|
||||
if (GlobalValueSummary *GVS = DefinedGlobals.lookup(GV.getGUID()))
|
||||
if (!Index.isGlobalValueLive(GVS))
|
||||
convertToDeclaration(GV);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user