Fix typo and add a FIXME.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 22 Sep 2010 19:04:41 +0000 (19:04 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 22 Sep 2010 19:04:41 +0000 (19:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114570 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/ELFObjectWriter.cpp

index 58eee020cf7631ef23527ce16d4f876a54631921..d9c88715016a4bce25a5718848d4bd24e8991196 100644 (file)
@@ -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.