Remove unnecessary applyMask() application.
authorRui Ueyama <ruiu@google.com>
Mon, 20 Aug 2018 06:33:29 +0000 (06:33 +0000)
committerRui Ueyama <ruiu@google.com>
Mon, 20 Aug 2018 06:33:29 +0000 (06:33 +0000)
applyMask(0xffffffff, x) is an identity function.

llvm-svn: 340152

lld/ELF/Arch/Hexagon.cpp

index 8f323a4..b0663a4 100644 (file)
@@ -129,7 +129,7 @@ void Hexagon::relocateOne(uint8_t *Loc, RelType Type, uint64_t Val) const {
     or32le(Loc, applyMask(0x000007e0, Val));
     break;
   case R_HEX_32:
-    or32le(Loc, applyMask(0xffffffff, Val));
+    or32le(Loc, Val);
     break;
   case R_HEX_32_6_X:
     or32le(Loc, applyMask(0x0fff3fff, Val >> 6));