Remove several unused variables.
[oota-llvm.git] / tools / llvm-readobj / ELFDumper.cpp
index 71f03bc3d0690ddadb9add5e0838bc80a41d4156..ffa0e01425eeb7b793b6dacf800df7fe1f9f8f28 100644 (file)
@@ -420,8 +420,6 @@ static const EnumEntry<unsigned> ElfSegmentFlags[] = {
 
 template<class ELFT>
 void ELFDumper<ELFT>::printFileHeaders() {
-  error_code EC;
-
   const typename ELFO::Elf_Ehdr *Header = Obj->getHeader();
 
   {
@@ -512,7 +510,6 @@ template<class ELFT>
 void ELFDumper<ELFT>::printRelocations() {
   ListScope D(W, "Relocations");
 
-  error_code EC;
   int SectionNumber = -1;
   for (typename ELFO::Elf_Shdr_Iter SecI = Obj->begin_sections(),
                                     SecE = Obj->end_sections();
@@ -769,8 +766,6 @@ template<class ELFT>
 void ELFDumper<ELFT>::printNeededLibraries() {
   ListScope D(W, "NeededLibraries");
 
-  error_code EC;
-
   typedef std::vector<StringRef> LibsTy;
   LibsTy Libs;