summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/ELF/Mips/MipsExecutableWriter.h
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2015-04-02 16:44:26 +0000
committerSimon Atanasyan <simon@atanasyan.com>2015-04-02 16:44:26 +0000
commit8189ee9a1e025cd5c28fb81d5d835e788bcb15c0 (patch)
tree635dd8a492745630fb8cc1eb20cdc6b21ad30b56 /lld/lib/ReaderWriter/ELF/Mips/MipsExecutableWriter.h
parent8adeef963217b0a614cdf93b95b44c58cfc5f2e0 (diff)
downloadbcm5719-llvm-8189ee9a1e025cd5c28fb81d5d835e788bcb15c0.tar.gz
bcm5719-llvm-8189ee9a1e025cd5c28fb81d5d835e788bcb15c0.zip
[Mips] Inline the MipsELFWriter::hasGlobalGOTEntry function
No functional changes. llvm-svn: 233924
Diffstat (limited to 'lld/lib/ReaderWriter/ELF/Mips/MipsExecutableWriter.h')
-rw-r--r--lld/lib/ReaderWriter/ELF/Mips/MipsExecutableWriter.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/lib/ReaderWriter/ELF/Mips/MipsExecutableWriter.h b/lld/lib/ReaderWriter/ELF/Mips/MipsExecutableWriter.h
index 0b0ed6dbca9..3927d69e6be 100644
--- a/lld/lib/ReaderWriter/ELF/Mips/MipsExecutableWriter.h
+++ b/lld/lib/ReaderWriter/ELF/Mips/MipsExecutableWriter.h
@@ -74,7 +74,7 @@ void MipsExecutableWriter<ELFT>::buildDynamicSymbolTable(const File &file) {
for (auto sec : this->_layout.sections())
if (auto section = dyn_cast<AtomSection<ELFT>>(sec))
for (const auto &atom : section->atoms()) {
- if (_writeHelper.hasGlobalGOTEntry(atom->_atom)) {
+ if (_targetLayout.getGOTSection().hasGlobalGOTEntry(atom->_atom)) {
this->_dynamicSymbolTable->addSymbol(atom->_atom, section->ordinal(),
atom->_virtualAddr, atom);
continue;
@@ -98,7 +98,7 @@ void MipsExecutableWriter<ELFT>::buildDynamicSymbolTable(const File &file) {
// FIXME (simon): Consider to move this check to the
// MipsELFUndefinedAtom class method. That allows to
// handle more complex coditions in the future.
- if (_writeHelper.hasGlobalGOTEntry(a))
+ if (_targetLayout.getGOTSection().hasGlobalGOTEntry(a))
this->_dynamicSymbolTable->addSymbol(a, ELF::SHN_UNDEF);
// Skip our immediate parent class method
OpenPOWER on IntegriCloud