[lld] r235032 - [Mips] Remove redundant `.got` section lookup
Simon Atanasyan
simon at atanasyan.com
Wed Apr 15 11:31:59 PDT 2015
Author: atanasyan
Date: Wed Apr 15 13:31:59 2015
New Revision: 235032
URL: http://llvm.org/viewvc/llvm-project?rev=235032&view=rev
Log:
[Mips] Remove redundant `.got` section lookup
No functional changes.
Modified:
lld/trunk/lib/ReaderWriter/ELF/Mips/MipsDynamicTable.h
Modified: lld/trunk/lib/ReaderWriter/ELF/Mips/MipsDynamicTable.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Mips/MipsDynamicTable.h?rev=235032&r1=235031&r2=235032&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Mips/MipsDynamicTable.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Mips/MipsDynamicTable.h Wed Apr 15 13:31:59 2015
@@ -82,8 +82,7 @@ public:
this->_entries[_dt_gotsym].d_un.d_val =
this-> getSymbolTable()->size() - got.getGlobalCount();
this->_entries[_dt_localgot].d_un.d_val = got.getLocalCount();
- this->_entries[_dt_pltgot].d_un.d_ptr =
- _targetLayout.findOutputSection(".got")->virtualAddr();
+ this->_entries[_dt_pltgot].d_un.d_ptr = got.virtualAddr();
}
int64_t getGotPltTag() override { return DT_MIPS_PLTGOT; }
More information about the llvm-commits
mailing list