[lld] r260444 - ELF: Combine cases that has the same code.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 10 14:00:22 PST 2016


Author: ruiu
Date: Wed Feb 10 16:00:21 2016
New Revision: 260444

URL: http://llvm.org/viewvc/llvm-project?rev=260444&view=rev
Log:
ELF: Combine cases that has the same code.

Modified:
    lld/trunk/ELF/Target.cpp

Modified: lld/trunk/ELF/Target.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Target.cpp?rev=260444&r1=260443&r2=260444&view=diff
==============================================================================
--- lld/trunk/ELF/Target.cpp (original)
+++ lld/trunk/ELF/Target.cpp Wed Feb 10 16:00:21 2016
@@ -871,14 +871,12 @@ void X86_64TargetInfo::relocateOne(uint8
     write32le(Loc, SA);
     break;
   case R_X86_64_64:
+  case R_X86_64_DTPOFF64:
     write64le(Loc, SA);
     break;
   case R_X86_64_DTPOFF32:
     write32le(Loc, SA);
     break;
-  case R_X86_64_DTPOFF64:
-    write64le(Loc, SA);
-    break;
   case R_X86_64_GOTPCREL:
   case R_X86_64_PC32:
   case R_X86_64_PLT32:




More information about the llvm-commits mailing list