Simplify. NFC.

llvm-svn: 319370
This commit is contained in:
Rafael Espindola 2017-11-29 22:20:03 +00:00
parent ca3563ca73
commit 07b7ee4394
1 changed files with 1 additions and 2 deletions

View File

@ -62,8 +62,7 @@ static std::vector<Defined *> getSymbols() {
static SymbolMapTy getSectionSyms(ArrayRef<Defined *> Syms) {
SymbolMapTy Ret;
for (Defined *S : Syms)
if (auto *DR = dyn_cast<Defined>(S))
Ret[DR->Section].push_back(S);
Ret[S->Section].push_back(S);
// Sort symbols by address. We want to print out symbols in the
// order in the output file rather than the order they appeared