summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/ELF/OutputELFWriter.h
diff options
context:
space:
mode:
authorShankar Easwaran <shankare@codeaurora.org>2015-03-14 19:41:24 +0000
committerShankar Easwaran <shankare@codeaurora.org>2015-03-14 19:41:24 +0000
commit5d34ad79b4eec963a73b5c80bf5e323db196788c (patch)
treecdde775b627a471c6454a2b508063a153c5a3c19 /lld/lib/ReaderWriter/ELF/OutputELFWriter.h
parent22319eb920bd9c113b8acf001abad44e84c1cfc4 (diff)
downloadbcm5719-llvm-5d34ad79b4eec963a73b5c80bf5e323db196788c.tar.gz
bcm5719-llvm-5d34ad79b4eec963a73b5c80bf5e323db196788c.zip
Revert "[ELF] Change few static functions."
This reverts commit r232253. Fix comments from dblaikie. Since these functions dont access member state, its ok to be static. llvm-svn: 232271
Diffstat (limited to 'lld/lib/ReaderWriter/ELF/OutputELFWriter.h')
-rw-r--r--lld/lib/ReaderWriter/ELF/OutputELFWriter.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/lib/ReaderWriter/ELF/OutputELFWriter.h b/lld/lib/ReaderWriter/ELF/OutputELFWriter.h
index 97121d15853..b44da49402f 100644
--- a/lld/lib/ReaderWriter/ELF/OutputELFWriter.h
+++ b/lld/lib/ReaderWriter/ELF/OutputELFWriter.h
@@ -207,7 +207,7 @@ protected:
/// @}
private:
- StringRef maybeGetSOName(Node *node);
+ static StringRef maybeGetSOName(Node *node);
};
//===----------------------------------------------------------------------===//
@@ -359,7 +359,7 @@ void OutputELFWriter<ELFT>::assignSectionsWithNoSegments() {
_layout.assignFileOffsetsForMiscSections();
for (auto sec : _layout.sections())
if (auto section = dyn_cast<Section<ELFT>>(sec))
- if (!_layout.hasOutputSegment(section))
+ if (!DefaultLayout<ELFT>::hasOutputSegment(section))
_shdrtab->updateSection(section);
}
OpenPOWER on IntegriCloud