Make dummySectionsNum() to be not a member of writer. NFC.

llvm-svn: 265136
This commit is contained in:
George Rimar 2016-04-01 11:59:32 +00:00
parent 7ec092d0f8
commit e2da42a762
1 changed files with 4 additions and 3 deletions

View File

@ -107,9 +107,6 @@ private:
unsigned getNumSections() const {
return OutputSections.size() + 1 - dummySectionsNum();
}
// Usually there are 2 dummies sections: ELF header and program header.
// Relocatable output does not require program headers to be created.
unsigned dummySectionsNum() const { return Config->Relocatable ? 1 : 2; }
void addRelIpltSymbols();
void addStartEndSymbols();
@ -127,6 +124,10 @@ private:
};
} // anonymous namespace
// Usually there are 2 dummies sections: ELF header and program header.
// Relocatable output does not require program headers to be created.
unsigned dummySectionsNum() { return Config->Relocatable ? 1 : 2; }
template <class ELFT> void elf::writeResult(SymbolTable<ELFT> *Symtab) {
typedef typename ELFT::uint uintX_t;