Remove OutputSection::updateAlignment.
I feel it is easier to understand without this function.
llvm-svn: 315140
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index 5c2acc4..e9b27a1 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -265,7 +265,7 @@
Out::ElfHeader = make<OutputSection>("", 0, SHF_ALLOC);
Out::ElfHeader->Size = sizeof(Elf_Ehdr);
Out::ProgramHeaders = make<OutputSection>("", 0, SHF_ALLOC);
- Out::ProgramHeaders->updateAlignment(Config->Wordsize);
+ Out::ProgramHeaders->Alignment = Config->Wordsize;
if (needsInterpSection()) {
InX::Interp = createInterpSection();