summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-10-15 19:31:49 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-10-15 19:31:49 +0000
commitb26d8070333117beb92bde3007ddd37729929c3e (patch)
treeca5d4abe5d8e976ca1c2d2caaf891555ad490ebc
parentf39757d0c06af80ce465e14d4f41b0462cd6c877 (diff)
downloadbcm5719-llvm-b26d8070333117beb92bde3007ddd37729929c3e.tar.gz
bcm5719-llvm-b26d8070333117beb92bde3007ddd37729929c3e.zip
Use OutputSectionBase in a few more places. NFC.
Just making room for having another output section type. llvm-svn: 250443
-rw-r--r--lld/ELF/Writer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index 530f8541418..5143a5ff53d 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -75,7 +75,7 @@ private:
std::vector<OutputSectionBase<ELFT::Is64Bits> *> OutputSections;
unsigned getNumSections() const { return OutputSections.size() + 1; }
- void addStartStopSymbols(OutputSection<ELFT> *Sec);
+ void addStartStopSymbols(OutputSectionBase<ELFT::Is64Bits> *Sec);
void setPhdr(Elf_Phdr *PH, uint32_t Type, uint32_t Flags, uintX_t FileOff,
uintX_t VA, uintX_t Align);
void copyPhdr(Elf_Phdr *PH, OutputSectionBase<ELFT::Is64Bits> *From);
@@ -403,7 +403,7 @@ template <class ELFT> void Writer<ELFT>::createSections() {
if (!isOutputDynamic())
Symtab.addIgnoredSym("__tls_get_addr");
- std::vector<OutputSection<ELFT> *> RegularSections;
+ std::vector<OutputSectionBase<ELFT::Is64Bits> *> RegularSections;
for (const std::unique_ptr<ObjectFile<ELFT>> &F : Symtab.getObjectFiles()) {
for (InputSection<ELFT> *C : F->getSections()) {
@@ -425,7 +425,7 @@ template <class ELFT> void Writer<ELFT>::createSections() {
}
}
- for (OutputSection<ELFT> *Sec : RegularSections)
+ for (OutputSectionBase<ELFT::Is64Bits> *Sec : RegularSections)
addStartStopSymbols(Sec);
Out<ELFT>::Dynamic->PreInitArraySec =
@@ -529,7 +529,7 @@ static bool isValidCIdentifier(StringRef S) {
// respectively. This is not requested by the ELF standard, but GNU ld and
// gold provide the feature, and used by many programs.
template <class ELFT>
-void Writer<ELFT>::addStartStopSymbols(OutputSection<ELFT> *Sec) {
+void Writer<ELFT>::addStartStopSymbols(OutputSectionBase<ELFT::Is64Bits> *Sec) {
StringRef S = Sec->getName();
if (!isValidCIdentifier(S))
return;
OpenPOWER on IntegriCloud