[ELF] Replace HasContents with HasSections. NFC
llvm-svn: 281449
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index 820674f..a73286a 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -252,7 +252,7 @@
Script<ELFT>::X->createAssignments();
Script<ELFT>::X->OutputSections = &OutputSections;
- if (ScriptConfig->HasContents)
+ if (ScriptConfig->HasSections)
Script<ELFT>::X->createSections(Factory);
else
createSections();
@@ -267,7 +267,7 @@
Phdrs = Script<ELFT>::X->hasPhdrsCommands() ? Script<ELFT>::X->createPhdrs()
: createPhdrs();
fixHeaders();
- if (ScriptConfig->HasContents) {
+ if (ScriptConfig->HasSections) {
Script<ELFT>::X->assignAddresses();
} else {
fixSectionAlignments();
@@ -610,7 +610,7 @@
Symtab<ELFT>::X->addIgnored("__tls_get_addr");
// If linker script do layout we do not need to create any standart symbols.
- if (ScriptConfig->HasContents)
+ if (ScriptConfig->HasSections)
return;
ElfSym<ELFT>::EhdrStart = Symtab<ELFT>::X->addIgnored("__ehdr_start");
@@ -1060,7 +1060,7 @@
// sections. These are special, we do not include them into output sections
// list, but have them to simplify the code.
template <class ELFT> void Writer<ELFT>::fixHeaders() {
- uintX_t BaseVA = ScriptConfig->HasContents ? 0 : Config->ImageBase;
+ uintX_t BaseVA = ScriptConfig->HasSections ? 0 : Config->ImageBase;
Out<ELFT>::ElfHeader->setVA(BaseVA);
uintX_t Off = Out<ELFT>::ElfHeader->getSize();
Out<ELFT>::ProgramHeaders->setVA(Off + BaseVA);