Remove default arguments because they don't improve readability.

llvm-svn: 299504
This commit is contained in:
Rui Ueyama 2017-04-05 03:20:22 +00:00
parent cba41013ef
commit d379f7357d
2 changed files with 5 additions and 5 deletions

View File

@ -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;
}

View File

@ -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 *);