Simplify types. NFC.

llvm-svn: 256197
This commit is contained in:
Rafael Espindola 2015-12-21 20:59:29 +00:00
parent 495bb46b34
commit 167e62f8c1
2 changed files with 4 additions and 4 deletions

View File

@ -616,9 +616,9 @@ template <class ELFT> void DynamicSection<ELFT>::finalize() {
}
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)

View File

@ -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;
};