diff options
author | Simon Atanasyan <simon@atanasyan.com> | 2015-04-02 16:44:26 +0000 |
---|---|---|
committer | Simon Atanasyan <simon@atanasyan.com> | 2015-04-02 16:44:26 +0000 |
commit | 8189ee9a1e025cd5c28fb81d5d835e788bcb15c0 (patch) | |
tree | 635dd8a492745630fb8cc1eb20cdc6b21ad30b56 | |
parent | 8adeef963217b0a614cdf93b95b44c58cfc5f2e0 (diff) | |
download | bcm5719-llvm-8189ee9a1e025cd5c28fb81d5d835e788bcb15c0.tar.gz bcm5719-llvm-8189ee9a1e025cd5c28fb81d5d835e788bcb15c0.zip |
[Mips] Inline the MipsELFWriter::hasGlobalGOTEntry function
No functional changes.
llvm-svn: 233924
-rw-r--r-- | lld/lib/ReaderWriter/ELF/Mips/MipsELFWriters.h | 4 | ||||
-rw-r--r-- | lld/lib/ReaderWriter/ELF/Mips/MipsExecutableWriter.h | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/lld/lib/ReaderWriter/ELF/Mips/MipsELFWriters.h b/lld/lib/ReaderWriter/ELF/Mips/MipsELFWriters.h index 63803bf841c..ed21e42a95f 100644 --- a/lld/lib/ReaderWriter/ELF/Mips/MipsELFWriters.h +++ b/lld/lib/ReaderWriter/ELF/Mips/MipsELFWriters.h @@ -47,10 +47,6 @@ public: setAtomValue("__gnu_local_gp", gp); } - bool hasGlobalGOTEntry(const Atom *a) const { - return _targetLayout.getGOTSection().hasGlobalGOTEntry(a); - } - std::unique_ptr<RuntimeFile<ELFT>> createRuntimeFile() { auto file = llvm::make_unique<RuntimeFile<ELFT>>(_ctx, "Mips runtime file"); if (_ctx.isDynamic()) { 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 |