[ELF] Fixed formatting. NFC

llvm-svn: 293278
This commit is contained in:
Eugene Leviant 2017-01-27 11:06:23 +00:00
parent cfe5ef589a
commit bcff495b85
1 changed files with 4 additions and 4 deletions

View File

@ -651,10 +651,10 @@ OutputSectionFactory<ELFT>::create(const SectionKey &Key,
error("Section has flags incompatible with others with the same name " +
toString(C));
// Convert notbits to progbits if they are mixed. This happens is some
// linker scripts.
if (Sec->Type == SHT_NOBITS && C->Type == SHT_PROGBITS)
Sec->Type = SHT_PROGBITS;
// Convert notbits to progbits if they are mixed. This happens is some
// linker scripts.
if (Sec->Type == SHT_NOBITS && C->Type == SHT_PROGBITS)
Sec->Type = SHT_PROGBITS;
if (!IsScripted && Sec->Type != C->Type &&
!(Sec->Type == SHT_PROGBITS && C->Type == SHT_NOBITS))
error("Section has different type from others with the same name " +