Rename Addralign to Alignment.
It now matches the name used in InputSectionBase.
llvm-svn: 297144
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp
index 2da59e8..6f93859 100644
--- a/lld/ELF/LinkerScript.cpp
+++ b/lld/ELF/LinkerScript.cpp
@@ -449,7 +449,7 @@
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 @@
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")