aboutsummaryrefslogtreecommitdiff
path: root/lib/MC/ELFObjectWriter.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-11-11 03:40:25 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-11-11 03:40:25 +0000
commit3f2d13c98eb04962bf6fcfdcc6f62789bc820d79 (patch)
treeda1b46da14411bd74964917b969263126e7eab65 /lib/MC/ELFObjectWriter.cpp
parent928f3325a70384ee91af5768f628cf0748879b11 (diff)
Remove some explicit arguments to getELFSection. This is
a leftover from the removal of isExplicit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118774 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/ELFObjectWriter.cpp')
-rw-r--r--lib/MC/ELFObjectWriter.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/MC/ELFObjectWriter.cpp b/lib/MC/ELFObjectWriter.cpp
index 6f63409683..4adc188b61 100644
--- a/lib/MC/ELFObjectWriter.cpp
+++ b/lib/MC/ELFObjectWriter.cpp
@@ -1137,7 +1137,7 @@ void ELFObjectWriterImpl::CreateMetadataSections(MCAssembler &Asm,
// We construct .shstrtab, .symtab and .strtab in this order to match gnu as.
const MCSectionELF *ShstrtabSection =
Ctx.getELFSection(".shstrtab", ELF::SHT_STRTAB, 0,
- SectionKind::getReadOnly(), false);
+ SectionKind::getReadOnly());
MCSectionData &ShstrtabSD = Asm.getOrCreateSectionData(*ShstrtabSection);
ShstrtabSD.setAlignment(1);
ShstrtabIndex = Asm.size();
@@ -1162,7 +1162,7 @@ void ELFObjectWriterImpl::CreateMetadataSections(MCAssembler &Asm,
const MCSection *StrtabSection;
StrtabSection = Ctx.getELFSection(".strtab", ELF::SHT_STRTAB, 0,
- SectionKind::getReadOnly(), false);
+ SectionKind::getReadOnly());
MCSectionData &StrtabSD = Asm.getOrCreateSectionData(*StrtabSection);
StrtabSD.setAlignment(1);
StringTableIndex = Asm.size();
@@ -1264,8 +1264,7 @@ void ELFObjectWriterImpl::WriteSection(MCAssembler &Asm,
const MCSectionELF *InfoSection;
SymtabSection = Asm.getContext().getELFSection(".symtab", ELF::SHT_SYMTAB,
0,
- SectionKind::getReadOnly(),
- false);
+ SectionKind::getReadOnly());
sh_link = SectionIndexMap.lookup(SymtabSection);
assert(sh_link && ".symtab not found");
@@ -1275,8 +1274,7 @@ void ELFObjectWriterImpl::WriteSection(MCAssembler &Asm,
InfoSection = Asm.getContext().getELFSection(SectionName,
ELF::SHT_PROGBITS, 0,
- SectionKind::getReadOnly(),
- false);
+ SectionKind::getReadOnly());
sh_info = SectionIndexMap.lookup(InfoSection);
break;
}