[ELF] - Simplify redundant templated call. NFC.

llvm-svn: 298244
This commit is contained in:
George Rimar 2017-03-20 10:47:00 +00:00
parent f6abfd7a53
commit 05423488a1
1 changed files with 2 additions and 4 deletions

View File

@ -1771,12 +1771,10 @@ class ObjInfoTy : public llvm::LoadedObjectInfo {
};
template <class ELFT> void GdbIndexSection<ELFT>::readDwarf(InputSection *Sec) {
elf::ObjectFile<ELFT> *File = Sec->template getFile<ELFT>();
Expected<std::unique_ptr<object::ObjectFile>> Obj =
object::ObjectFile::createObjectFile(File->MB);
object::ObjectFile::createObjectFile(Sec->File->MB);
if (!Obj) {
error(toString(File) + ": error creating DWARF context");
error(toString(Sec->File) + ": error creating DWARF context");
return;
}