From 1b9f1faf572ccf76263a151c3c49730ca26457cd Mon Sep 17 00:00:00 2001 From: Jake Ehrlich Date: Fri, 26 Jan 2018 01:48:12 +0000 Subject: [PATCH] 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@323493 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-objcopy/Object.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/llvm-objcopy/Object.cpp b/tools/llvm-objcopy/Object.cpp index a1f5ff15fa19d..f1e5616fc51a1 100644 --- a/tools/llvm-objcopy/Object.cpp +++ b/tools/llvm-objcopy/Object.cpp @@ -698,13 +698,13 @@ ELFReader::ELFReader(StringRef File) { } ElfType ELFReader::getElfType() const { - if (auto *o = dyn_cast>(Binary.get())) + if (isa>(Binary.get())) return ELFT_ELF32LE; - if (auto *o = dyn_cast>(Binary.get())) + if (isa>(Binary.get())) return ELFT_ELF64LE; - if (auto *o = dyn_cast>(Binary.get())) + if (isa>(Binary.get())) return ELFT_ELF32BE; - if (auto *o = dyn_cast>(Binary.get())) + if (isa>(Binary.get())) return ELFT_ELF64BE; llvm_unreachable("Invalid ELFType"); }