diff options
author | Simon Atanasyan <simon@atanasyan.com> | 2017-07-04 15:04:30 +0000 |
---|---|---|
committer | Simon Atanasyan <simon@atanasyan.com> | 2017-07-04 15:04:30 +0000 |
commit | 2e5c46cbac22a699da3fd77e969d322a0fdfe317 (patch) | |
tree | 249f536edfb8cbe96dce5db3d14d2733ab719a9a | |
parent | aec6287f5db4565ca5c214482ebc7c70b44daaca (diff) | |
download | bcm5719-llvm-2e5c46cbac22a699da3fd77e969d322a0fdfe317.tar.gz bcm5719-llvm-2e5c46cbac22a699da3fd77e969d322a0fdfe317.zip |
[ELF] Do not use `this` to access members of non-template class. NFC
llvm-svn: 307083
-rw-r--r-- | lld/ELF/Thunks.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lld/ELF/Thunks.cpp b/lld/ELF/Thunks.cpp index 752a881d786..fc113bf3275 100644 --- a/lld/ELF/Thunks.cpp +++ b/lld/ELF/Thunks.cpp @@ -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(ThunkSection &IS) { // 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) |