[lld] r220180 - [ELF] Make updateReferenceForMergeStringAccess virtual.
Shankar Easwaran
shankarke at gmail.com
Sun Oct 19 20:03:44 PDT 2014
Author: shankare
Date: Sun Oct 19 22:03:43 2014
New Revision: 220180
URL: http://llvm.org/viewvc/llvm-project?rev=220180&view=rev
Log:
[ELF] Make updateReferenceForMergeStringAccess virtual.
The ELF subtargets would usually want to override the function
updateReferenceForMergeStringAccess. Allow this by making it virtual.
Modified:
lld/trunk/lib/ReaderWriter/ELF/ELFFile.h
Modified: lld/trunk/lib/ReaderWriter/ELF/ELFFile.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/ELFFile.h?rev=220180&r1=220179&r2=220180&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/ELFFile.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/ELFFile.h Sun Oct 19 22:03:43 2014
@@ -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.
More information about the llvm-commits
mailing list