diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2017-03-07 14:55:52 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2017-03-07 14:55:52 +0000 |
commit | 3770763cdae6f4b46d7555c18a8906a23a03ff38 (patch) | |
tree | f66a812a284b72d3a2f449930f92cd78e98590dc /lld/ELF/LinkerScript.cpp | |
parent | 67329896374fa52b3b73716c03c9267cd309b0e6 (diff) | |
download | bcm5719-llvm-3770763cdae6f4b46d7555c18a8906a23a03ff38.tar.gz bcm5719-llvm-3770763cdae6f4b46d7555c18a8906a23a03ff38.zip |
Rename Addralign to Alignment.
It now matches the name used in InputSectionBase.
llvm-svn: 297144
Diffstat (limited to 'lld/ELF/LinkerScript.cpp')
-rw-r--r-- | lld/ELF/LinkerScript.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index 2da59e850b8..6f93859f744 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -449,7 +449,7 @@ template <class ELFT> void LinkerScript<ELFT>::switchTo(OutputSection *Sec) { CurOutSec = Sec; - Dot = alignTo(Dot, CurOutSec->Addralign); + Dot = alignTo(Dot, CurOutSec->Alignment); CurOutSec->Addr = isTbss<ELFT>(CurOutSec) ? Dot + ThreadBssOffset : Dot; // If neither AT nor AT> is specified for an allocatable section, the linker @@ -1862,7 +1862,7 @@ Expr ScriptParser::readPrimary() { if (Tok == "ALIGNOF") { StringRef Name = readParenLiteral(); return [=](uint64_t Dot) { - return ScriptBase->getOutputSection(Location, Name)->Addralign; + return ScriptBase->getOutputSection(Location, Name)->Alignment; }; } if (Tok == "SIZEOF_HEADERS") |