[lld] r304511 - Simplify. NFC.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 1 18:24:37 PDT 2017
Author: rafael
Date: Thu Jun 1 20:24:37 2017
New Revision: 304511
URL: http://llvm.org/viewvc/llvm-project?rev=304511&view=rev
Log:
Simplify. NFC.
Modified:
lld/trunk/ELF/LinkerScript.cpp
Modified: lld/trunk/ELF/LinkerScript.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LinkerScript.cpp?rev=304511&r1=304510&r2=304511&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.cpp (original)
+++ lld/trunk/ELF/LinkerScript.cpp Thu Jun 1 20:24:37 2017
@@ -463,8 +463,7 @@ void LinkerScript::fabricateDefaultComma
// Prefer user supplied address over additional alignment constraint
auto I = Config->SectionStartMap.find(Sec->Name);
if (I != Config->SectionStartMap.end())
- Commands.push_back(
- make<SymbolAssignment>(".", [=] { return I->second; }, ""));
+ OSCmd->AddrExpr = [=] { return I->second; };
else if (Sec->PageAlign)
OSCmd->AddrExpr = [=] {
return alignTo(Script->getDot(), Config->MaxPageSize);
More information about the llvm-commits
mailing list