forked from OSchip/llvm-project
Remove default arguments because they don't improve readability.
llvm-svn: 299504
This commit is contained in:
parent
cba41013ef
commit
d379f7357d
|
@ -644,7 +644,7 @@ void LinkerScript::assignOffsets(OutputSectionCommand *Cmd) {
|
|||
return;
|
||||
|
||||
if (Cmd->AddrExpr && (Sec->Flags & SHF_ALLOC))
|
||||
setDot(Cmd->AddrExpr, Cmd->Location);
|
||||
setDot(Cmd->AddrExpr, Cmd->Location, false);
|
||||
|
||||
if (Cmd->LMAExpr) {
|
||||
uint64_t D = Dot;
|
||||
|
@ -858,7 +858,7 @@ void LinkerScript::placeOrphanSections() {
|
|||
void LinkerScript::processNonSectionCommands() {
|
||||
for (const std::unique_ptr<BaseCommand> &Base : Opt.Commands) {
|
||||
if (auto *Cmd = dyn_cast<SymbolAssignment>(Base.get()))
|
||||
assignSymbol(Cmd);
|
||||
assignSymbol(Cmd, false);
|
||||
else if (auto *Cmd = dyn_cast<AssertCommand>(Base.get()))
|
||||
Cmd->Expression();
|
||||
}
|
||||
|
@ -872,7 +872,7 @@ void LinkerScript::assignAddresses(std::vector<PhdrEntry> &Phdrs) {
|
|||
|
||||
for (const std::unique_ptr<BaseCommand> &Base : Opt.Commands) {
|
||||
if (auto *Cmd = dyn_cast<SymbolAssignment>(Base.get())) {
|
||||
assignSymbol(Cmd);
|
||||
assignSymbol(Cmd, false);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
@ -224,8 +224,8 @@ struct ScriptConfiguration {
|
|||
|
||||
class LinkerScript {
|
||||
protected:
|
||||
void assignSymbol(SymbolAssignment *Cmd, bool InSec = false);
|
||||
void setDot(Expr E, const Twine &Loc, bool InSec = false);
|
||||
void assignSymbol(SymbolAssignment *Cmd, bool InSec);
|
||||
void setDot(Expr E, const Twine &Loc, bool InSec);
|
||||
|
||||
std::vector<InputSectionBase *>
|
||||
computeInputSections(const InputSectionDescription *);
|
||||
|
|
Loading…
Reference in New Issue