[ELF] Remove processNonSectionCommands

This method is no longer being used anywhere.

Differential Revision: https://reviews.llvm.org/D35706

llvm-svn: 308706
This commit is contained in:
Petr Hosek 2017-07-21 01:02:30 +00:00
parent 0f874d4ba5
commit 8b591f592b
2 changed files with 0 additions and 10 deletions

View File

@ -790,15 +790,6 @@ void LinkerScript::adjustSectionsAfterSorting() {
removeEmptyCommands();
}
void LinkerScript::processNonSectionCommands() {
for (BaseCommand *Base : Opt.Commands) {
if (auto *Cmd = dyn_cast<SymbolAssignment>(Base))
assignSymbol(Cmd, false);
else if (auto *Cmd = dyn_cast<AssertCommand>(Base))
Cmd->Expression();
}
}
void LinkerScript::allocateHeaders(std::vector<PhdrEntry> &Phdrs) {
uint64_t Min = std::numeric_limits<uint64_t>::max();
for (OutputSectionCommand *Cmd : OutputSectionCommands) {

View File

@ -288,7 +288,6 @@ public:
bool shouldKeep(InputSectionBase *S);
void assignOffsets(OutputSectionCommand *Cmd);
void processNonSectionCommands();
void assignAddresses();
void allocateHeaders(std::vector<PhdrEntry> &Phdrs);
void addSymbol(SymbolAssignment *Cmd);