From 1e783024d3510cc55c3fd49f5ba0e45faea39fd6 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Thu, 13 Nov 2014 07:42:13 +0000 Subject: [PATCH] llvm-readobj, COFF: Remove an unused variable printRelocation doesn't use the section contents. No functionality change intended. llvm-svn: 221871 --- llvm/tools/llvm-readobj/COFFDumper.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/llvm/tools/llvm-readobj/COFFDumper.cpp b/llvm/tools/llvm-readobj/COFFDumper.cpp index bb4315835c20..1506f06136ea 100644 --- a/llvm/tools/llvm-readobj/COFFDumper.cpp +++ b/llvm/tools/llvm-readobj/COFFDumper.cpp @@ -792,7 +792,6 @@ void COFFDumper::printRelocation(const SectionRef &Section, uint64_t RelocType; SmallString<32> RelocName; StringRef SymbolName; - StringRef Contents; if (error(Reloc.getOffset(Offset))) return; if (error(Reloc.getType(RelocType))) @@ -802,8 +801,6 @@ void COFFDumper::printRelocation(const SectionRef &Section, symbol_iterator Symbol = Reloc.getSymbol(); if (Symbol != Obj->symbol_end() && error(Symbol->getName(SymbolName))) return; - if (error(Section.getContents(Contents))) - return; if (opts::ExpandRelocs) { DictScope Group(W, "Relocation");