[lld] r256197 - Simplify types. NFC.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 21 12:59:29 PST 2015
Author: rafael
Date: Mon Dec 21 14:59:29 2015
New Revision: 256197
URL: http://llvm.org/viewvc/llvm-project?rev=256197&view=rev
Log:
Simplify types. NFC.
Modified:
lld/trunk/ELF/OutputSections.cpp
lld/trunk/ELF/OutputSections.h
Modified: lld/trunk/ELF/OutputSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.cpp?rev=256197&r1=256196&r2=256197&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Mon Dec 21 14:59:29 2015
@@ -616,9 +616,9 @@ template <class ELFT> void DynamicSectio
}
if (Symbol *S = SymTab.getSymbols().lookup(Config->Init))
- InitSym = dyn_cast<ELFSymbolBody<ELFT>>(S->Body);
+ InitSym = S->Body;
if (Symbol *S = SymTab.getSymbols().lookup(Config->Fini))
- FiniSym = dyn_cast<ELFSymbolBody<ELFT>>(S->Body);
+ FiniSym = S->Body;
if (InitSym)
++NumEntries; // DT_INIT
if (FiniSym)
Modified: lld/trunk/ELF/OutputSections.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.h?rev=256197&r1=256196&r2=256197&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.h (original)
+++ lld/trunk/ELF/OutputSections.h Mon Dec 21 14:59:29 2015
@@ -414,8 +414,8 @@ public:
private:
SymbolTable<ELFT> &SymTab;
- const ELFSymbolBody<ELFT> *InitSym = nullptr;
- const ELFSymbolBody<ELFT> *FiniSym = nullptr;
+ const SymbolBody *InitSym = nullptr;
+ const SymbolBody *FiniSym = nullptr;
uint32_t DtFlags = 0;
uint32_t DtFlags1 = 0;
};
More information about the llvm-commits
mailing list