forked from OSchip/llvm-project
Reland "[llvm-objcopy] Refactor llvm-objcopy to use reader and writer objects"
I had more unused varibles. This change removes those to get rid of warnings. llvm-svn: 323493
This commit is contained in:
parent
d21aeffc86
commit
41d9d7b16f
|
@ -698,13 +698,13 @@ ELFReader::ELFReader(StringRef File) {
|
|||
}
|
||||
|
||||
ElfType ELFReader::getElfType() const {
|
||||
if (auto *o = dyn_cast<ELFObjectFile<ELF32LE>>(Binary.get()))
|
||||
if (isa<ELFObjectFile<ELF32LE>>(Binary.get()))
|
||||
return ELFT_ELF32LE;
|
||||
if (auto *o = dyn_cast<ELFObjectFile<ELF64LE>>(Binary.get()))
|
||||
if (isa<ELFObjectFile<ELF64LE>>(Binary.get()))
|
||||
return ELFT_ELF64LE;
|
||||
if (auto *o = dyn_cast<ELFObjectFile<ELF32BE>>(Binary.get()))
|
||||
if (isa<ELFObjectFile<ELF32BE>>(Binary.get()))
|
||||
return ELFT_ELF32BE;
|
||||
if (auto *o = dyn_cast<ELFObjectFile<ELF64BE>>(Binary.get()))
|
||||
if (isa<ELFObjectFile<ELF64BE>>(Binary.get()))
|
||||
return ELFT_ELF64BE;
|
||||
llvm_unreachable("Invalid ELFType");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue