[lld] r307083 - [ELF] Do not use `this` to access members of non-template class. NFC
Simon Atanasyan via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 4 08:04:30 PDT 2017
Author: atanasyan
Date: Tue Jul 4 08:04:30 2017
New Revision: 307083
URL: http://llvm.org/viewvc/llvm-project?rev=307083&view=rev
Log:
[ELF] Do not use `this` to access members of non-template class. NFC
Modified:
lld/trunk/ELF/Thunks.cpp
Modified: lld/trunk/ELF/Thunks.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Thunks.cpp?rev=307083&r1=307082&r2=307083&view=diff
==============================================================================
--- lld/trunk/ELF/Thunks.cpp (original)
+++ lld/trunk/ELF/Thunks.cpp Tue Jul 4 08:04:30 2017
@@ -71,7 +71,7 @@ public:
class ThumbV7ABSLongThunk final : public Thunk {
public:
ThumbV7ABSLongThunk(const SymbolBody &Dest) : Thunk(Dest) {
- this->alignment = 2;
+ alignment = 2;
}
uint32_t size() const override { return 10; }
@@ -82,7 +82,7 @@ public:
class ThumbV7PILongThunk final : public Thunk {
public:
ThumbV7PILongThunk(const SymbolBody &Dest) : Thunk(Dest) {
- this->alignment = 2;
+ alignment = 2;
}
uint32_t size() const override { return 12; }
@@ -191,7 +191,7 @@ void ThumbV7PILongThunk::addSymbols(Thun
// Write MIPS LA25 thunk code to call PIC function from the non-PIC one.
void MipsThunk::writeTo(uint8_t *Buf, ThunkSection &) const {
- uint64_t S = this->Destination.getVA();
+ uint64_t S = Destination.getVA();
write32(Buf, 0x3c190000, Config->Endianness); // lui $25, %hi(func)
write32(Buf + 4, 0x08000000 | (S >> 2), Config->Endianness); // j func
write32(Buf + 8, 0x27390000, Config->Endianness); // addiu $25, $25, %lo(func)
More information about the llvm-commits
mailing list