[ELF] Make updateReferenceForMergeStringAccess virtual.
authorShankar Easwaran <shankarke@gmail.com>
Mon, 20 Oct 2014 03:03:43 +0000 (03:03 +0000)
committerShankar Easwaran <shankarke@gmail.com>
Mon, 20 Oct 2014 03:03:43 +0000 (03:03 +0000)
The ELF subtargets would usually want to override the function
updateReferenceForMergeStringAccess. Allow this by making it virtual.

llvm-svn: 220180

lld/lib/ReaderWriter/ELF/ELFFile.h

index 39e3755..78950de 100644 (file)
@@ -182,9 +182,9 @@ protected:
 
   /// \brief Update the reference if the access corresponds to a merge string
   /// section.
-  void updateReferenceForMergeStringAccess(ELFReference<ELFT> *ref,
-                                           const Elf_Sym *symbol,
-                                           const Elf_Shdr *shdr);
+  virtual void updateReferenceForMergeStringAccess(ELFReference<ELFT> *ref,
+                                                   const Elf_Sym *symbol,
+                                                   const Elf_Shdr *shdr);
 
   /// \brief Return true if the symbol is corresponding to an architecture
   /// specific section. We will let the TargetHandler handle such atoms.