forked from OSchip/llvm-project
Make dummySectionsNum() to be not a member of writer. NFC.
llvm-svn: 265136
This commit is contained in:
parent
7ec092d0f8
commit
e2da42a762
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue