[PATCH] D11265: LLD: ELF: Make ELFFile::handleSectionWithNoSymbols() virtual

Tom Stellard thomas.stellard at amd.com
Thu Jul 16 07:59:57 PDT 2015


tstellarAMD created this revision.
tstellarAMD added a subscriber: llvm-commits.

This way targets can override it if they want.

http://reviews.llvm.org/D11265

Files:
  lib/ReaderWriter/ELF/ELFFile.h

Index: lib/ReaderWriter/ELF/ELFFile.h
===================================================================
--- lib/ReaderWriter/ELF/ELFFile.h
+++ lib/ReaderWriter/ELF/ELFFile.h
@@ -198,7 +198,7 @@
 
   /// Determines if the target wants to create an atom for a section that has no
   /// symbol references.
-  bool handleSectionWithNoSymbols(const Elf_Shdr *shdr,
+  virtual bool handleSectionWithNoSymbols(const Elf_Shdr *shdr,
                                   std::vector<const Elf_Sym *> &syms) const {
     return shdr &&
            (shdr->sh_type == llvm::ELF::SHT_PROGBITS ||


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11265.29910.patch
Type: text/x-patch
Size: 584 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150716/7b1d9192/attachment.bin>


More information about the llvm-commits mailing list