[llvm] r221871 - llvm-readobj, COFF: Remove an unused variable
David Majnemer
david.majnemer at gmail.com
Wed Nov 12 23:42:13 PST 2014
Author: majnemer
Date: Thu Nov 13 01:42:13 2014
New Revision: 221871
URL: http://llvm.org/viewvc/llvm-project?rev=221871&view=rev
Log:
llvm-readobj, COFF: Remove an unused variable
printRelocation doesn't use the section contents. No functionality
change intended.
Modified:
llvm/trunk/tools/llvm-readobj/COFFDumper.cpp
Modified: llvm/trunk/tools/llvm-readobj/COFFDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-readobj/COFFDumper.cpp?rev=221871&r1=221870&r2=221871&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-readobj/COFFDumper.cpp (original)
+++ llvm/trunk/tools/llvm-readobj/COFFDumper.cpp Thu Nov 13 01:42:13 2014
@@ -792,7 +792,6 @@ void COFFDumper::printRelocation(const S
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 S
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");
More information about the llvm-commits
mailing list