mirror of
https://github.com/intel/llvm.git
synced 2026-01-29 04:16:38 +08:00
Split addSection into two small functions. NFCI.
addSection function was hard to read because it behaves differently depending on its arguments but what exactly it does is not clear. Now it should be better. Still, it is not clear (not what but) why it does what it does, but I'll take a look at it later. llvm-svn: 315124
This commit is contained in:
@@ -458,7 +458,7 @@ void LinkerScript::addOrphanSections(OutputSectionFactory &Factory) {
|
||||
});
|
||||
log(toString(S) + " is being placed in '" + Name + "'");
|
||||
if (I == End) {
|
||||
Factory.addInputSec(S, Name);
|
||||
Factory.addInputSec(S, Name, nullptr);
|
||||
assert(S->getOutputSection()->SectionIndex == INT_MAX);
|
||||
} else {
|
||||
OutputSection *Sec = cast<OutputSection>(*I);
|
||||
|
||||
Reference in New Issue
Block a user