summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2019-03-13 16:00:35 +0000
committerSimon Atanasyan <simon@atanasyan.com>2019-03-13 16:00:35 +0000
commit2e855675eb217b131f22820aeb0587c9e53372d8 (patch)
tree098ba34fb058b84873ef40d5fd024d95a30e4d63
parent81d03f3a8fe5044375a53d121eefdc742a7fc9da (diff)
downloadbcm5719-llvm-2e855675eb217b131f22820aeb0587c9e53372d8.tar.gz
bcm5719-llvm-2e855675eb217b131f22820aeb0587c9e53372d8.zip
[mips] Remove redundant setup of less-significant bit. NFC
The less-significant bit for microMIPS symbols configured in the `getSymVA` function. Do not need to setup it once again. llvm-svn: 356058
-rw-r--r--lld/ELF/Thunks.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/Thunks.cpp b/lld/ELF/Thunks.cpp
index d7150d4a21f..fb371f118e2 100644
--- a/lld/ELF/Thunks.cpp
+++ b/lld/ELF/Thunks.cpp
@@ -636,7 +636,7 @@ InputSection *MipsThunk::getTargetInputSection() const {
// Write microMIPS R2-R5 LA25 thunk code
// to call PIC function from the non-PIC one.
void MicroMipsThunk::writeTo(uint8_t *Buf) {
- uint64_t S = Destination.getVA() | 1;
+ uint64_t S = Destination.getVA();
write16(Buf, 0x41b9); // lui $25, %hi(func)
write16(Buf + 4, 0xd400); // j func
write16(Buf + 8, 0x3339); // addiu $25, $25, %lo(func)
@@ -660,7 +660,7 @@ InputSection *MicroMipsThunk::getTargetInputSection() const {
// Write microMIPS R6 LA25 thunk code
// to call PIC function from the non-PIC one.
void MicroMipsR6Thunk::writeTo(uint8_t *Buf) {
- uint64_t S = Destination.getVA() | 1;
+ uint64_t S = Destination.getVA();
uint64_t P = getThunkTargetSym()->getVA();
write16(Buf, 0x1320); // lui $25, %hi(func)
write16(Buf + 4, 0x3339); // addiu $25, $25, %lo(func)
OpenPOWER on IntegriCloud