[lld] r250640 - Simplify. NFC.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 17 20:13:46 PDT 2015
Author: rafael
Date: Sat Oct 17 22:13:46 2015
New Revision: 250640
URL: http://llvm.org/viewvc/llvm-project?rev=250640&view=rev
Log:
Simplify. 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=250640&r1=250639&r2=250640&view=diff
==============================================================================
--- lld/trunk/ELF/Target.cpp (original)
+++ lld/trunk/ELF/Target.cpp Sat Oct 17 22:13:46 2015
@@ -283,6 +283,7 @@ void X86_64TargetInfo::relocateOne(uint8
switch (Type) {
case R_X86_64_PC32:
case R_X86_64_GOTPCREL:
+ case R_X86_64_PLT32:
write32le(Loc, SA - BaseAddr - Offset);
break;
case R_X86_64_64:
@@ -297,9 +298,6 @@ void X86_64TargetInfo::relocateOne(uint8
write32le(Loc, SA);
break;
}
- case R_X86_64_PLT32:
- write32le(Loc, SA - BaseAddr - Offset);
- break;
default:
error("unrecognized reloc " + Twine(Type));
}
More information about the llvm-commits
mailing list