[llvm] r202445 - Remove unnecessary temporary variable.
Rui Ueyama
ruiu at google.com
Thu Feb 27 16:06:20 PST 2014
Author: ruiu
Date: Thu Feb 27 18:06:20 2014
New Revision: 202445
URL: http://llvm.org/viewvc/llvm-project?rev=202445&view=rev
Log:
Remove unnecessary temporary variable.
Modified:
llvm/trunk/tools/llvm-objdump/COFFDump.cpp
Modified: llvm/trunk/tools/llvm-objdump/COFFDump.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-objdump/COFFDump.cpp?rev=202445&r1=202444&r2=202445&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-objdump/COFFDump.cpp (original)
+++ llvm/trunk/tools/llvm-objdump/COFFDump.cpp Thu Feb 27 18:06:20 2014
@@ -224,10 +224,8 @@ static void printCOFFSymbolAddress(llvm:
const std::vector<RelocationRef> &Rels,
uint64_t Offset, uint32_t Disp) {
StringRef Sym;
- if (error_code EC = resolveSymbolName(Rels, Offset, Sym)) {
- error(EC);
- return ;
- }
+ if (error(resolveSymbolName(Rels, Offset, Sym)))
+ return;
Out << Sym;
if (Disp > 0)
Out << format(" + 0x%04x", Disp);
More information about the llvm-commits
mailing list