[llvm] r241458 - Simplify. NFC.

Rafael Espindola rafael.espindola at gmail.com
Mon Jul 6 08:53:43 PDT 2015


Author: rafael
Date: Mon Jul  6 10:53:43 2015
New Revision: 241458

URL: http://llvm.org/viewvc/llvm-project?rev=241458&view=rev
Log:
Simplify. NFC.

Modified:
    llvm/trunk/tools/llvm-readobj/llvm-readobj.cpp

Modified: llvm/trunk/tools/llvm-readobj/llvm-readobj.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-readobj/llvm-readobj.cpp?rev=241458&r1=241457&r2=241458&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-readobj/llvm-readobj.cpp (original)
+++ llvm/trunk/tools/llvm-readobj/llvm-readobj.cpp Mon Jul  6 10:53:43 2015
@@ -199,9 +199,7 @@ bool error(std::error_code EC) {
 }
 
 bool relocAddressLess(RelocationRef a, RelocationRef b) {
-  uint64_t a_addr = a.getOffset();
-  uint64_t b_addr = b.getOffset();
-  return a_addr < b_addr;
+  return a.getOffset() < b.getOffset();
 }
 
 } // namespace llvm





More information about the llvm-commits mailing list