[lld] r266601 - Merge duplicated cases. NFC.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 18 04:53:43 PDT 2016


Author: rafael
Date: Mon Apr 18 06:53:42 2016
New Revision: 266601

URL: http://llvm.org/viewvc/llvm-project?rev=266601&view=rev
Log:
Merge duplicated cases. NFC.

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=266601&r1=266600&r2=266601&view=diff
==============================================================================
--- lld/trunk/ELF/Target.cpp (original)
+++ lld/trunk/ELF/Target.cpp Mon Apr 18 06:53:42 2016
@@ -901,11 +901,9 @@ void X86_64TargetInfo::relocateOne(uint8
     break;
   case R_X86_64_64:
   case R_X86_64_DTPOFF64:
+  case R_X86_64_SIZE64:
     write64le(Loc, Val);
     break;
-  case R_X86_64_DTPOFF32:
-    write32le(Loc, Val);
-    break;
   case R_X86_64_GOTPCREL:
   case R_X86_64_GOTPCRELX:
   case R_X86_64_REX_GOTPCRELX:
@@ -913,14 +911,10 @@ void X86_64TargetInfo::relocateOne(uint8
   case R_X86_64_PLT32:
   case R_X86_64_TLSGD:
   case R_X86_64_TLSLD:
-    write32le(Loc, Val);
-    break;
+  case R_X86_64_DTPOFF32:
   case R_X86_64_SIZE32:
     write32le(Loc, Val);
     break;
-  case R_X86_64_SIZE64:
-    write64le(Loc, Val);
-    break;
   case R_X86_64_TPOFF32: {
     Val -= Out<ELF64LE>::TlsPhdr->p_memsz;
     checkInt<32>(Val, Type);




More information about the llvm-commits mailing list