[PATCH] [ELF] Allow TargetLayout descendants to control assignment sections to segments

Simon Atanasyan simon at atanasyan.com
Wed Apr 22 01:00:22 PDT 2015


REPOSITORY
  rL LLVM

================
Comment at: lib/ReaderWriter/ELF/Mips/MipsTargetLayout.h:87
@@ +86,3 @@
+  uint64_t getLookupSectionFlags(const OutputSection<ELFT> *os) const override {
+    uint64_t flags = TargetLayout<ELFT>::getLookupSectionFlags(os);
+    return flags & ~llvm::ELF::SHF_MIPS_NOSTRIP;
----------------
ruiu wrote:
> I guess you can remove <ELFT> from this line.
MipsTargetLayout is a template class and if I remove <ELFT> I get "'TargetLayout' is not a class, namespace, or enumeration" error.

http://reviews.llvm.org/D9160

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list