[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:
parent
0f874d4ba5
commit
8b591f592b
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue