summaryrefslogtreecommitdiffstats
path: root/lld/ELF/Writer.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2017-03-07 14:55:52 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2017-03-07 14:55:52 +0000
commit3770763cdae6f4b46d7555c18a8906a23a03ff38 (patch)
treef66a812a284b72d3a2f449930f92cd78e98590dc /lld/ELF/Writer.cpp
parent67329896374fa52b3b73716c03c9267cd309b0e6 (diff)
downloadbcm5719-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/Writer.cpp')
-rw-r--r--lld/ELF/Writer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index b0e6c41b6c9..1b9039d2941 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -728,7 +728,7 @@ void PhdrEntry::add(OutputSection *Sec) {
Last = Sec;
if (!First)
First = Sec;
- p_align = std::max(p_align, Sec->Addralign);
+ p_align = std::max(p_align, Sec->Alignment);
if (p_type == PT_LOAD)
Sec->FirstInPtLoad = First;
}
@@ -1454,7 +1454,7 @@ template <class ELFT> void Writer<ELFT>::assignAddresses() {
VA += getHeaderSize<ELFT>();
uintX_t ThreadBssOffset = 0;
for (OutputSection *Sec : OutputSections) {
- uintX_t Alignment = Sec->Addralign;
+ uintX_t Alignment = Sec->Alignment;
if (Sec->PageAlign)
Alignment = std::max<uintX_t>(Alignment, Config->MaxPageSize);
@@ -1485,7 +1485,7 @@ static uintX_t getFileAlignment(uintX_t Off, OutputSection *Sec) {
OutputSection *First = Sec->FirstInPtLoad;
// If the section is not in a PT_LOAD, we just have to align it.
if (!First)
- return alignTo(Off, Sec->Addralign);
+ return alignTo(Off, Sec->Alignment);
// The first section in a PT_LOAD has to have congruent offset and address
// module the page size.
OpenPOWER on IntegriCloud