summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-09-22 19:04:41 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-09-22 19:04:41 +0000
commit38738bf1a847292003a5495f17e42a75d1274bf7 (patch)
tree75d805b5a57e66ec8cf77fa12d2d98ab53f8371c /lib
parentec57a1acec7803fff2faa54c6ea8fec2be01aeb9 (diff)
downloadllvm-38738bf1a847292003a5495f17e42a75d1274bf7.tar.gz
llvm-38738bf1a847292003a5495f17e42a75d1274bf7.tar.bz2
llvm-38738bf1a847292003a5495f17e42a75d1274bf7.tar.xz
Fix typo and add a FIXME.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114570 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/MC/ELFObjectWriter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/MC/ELFObjectWriter.cpp b/lib/MC/ELFObjectWriter.cpp
index 58eee020cf..d9c8871501 100644
--- a/lib/MC/ELFObjectWriter.cpp
+++ b/lib/MC/ELFObjectWriter.cpp
@@ -812,7 +812,7 @@ void ELFObjectWriterImpl::CreateMetadataSections(MCAssembler &Asm,
unsigned NumRegularSections = Asm.size();
- // We construct .shstrtab, .symtab and .strtab is this order to match gnu as.
+ // We construct .shstrtab, .symtab and .strtab in this order to match gnu as.
const MCSection *ShstrtabSection;
ShstrtabSection = Ctx.getELFSection(".shstrtab", ELF::SHT_STRTAB, 0,
SectionKind::getReadOnly(), false);
@@ -856,6 +856,7 @@ void ELFObjectWriterImpl::CreateMetadataSections(MCAssembler &Asm,
ie = Asm.end(); it != ie; ++it) {
const MCSectionELF &Section =
static_cast<const MCSectionELF&>(it->getSection());
+ // FIXME: We could merge prefixes like in .text and .text.rela.
// Remember the index into the string table so we can write it
// into the sh_name field of the section header table.