summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/ELF
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2016-02-01 23:42:10 +0000
committerPete Cooper <peter_cooper@apple.com>2016-02-01 23:42:10 +0000
commitf91b22ce2cb295da994a3488fd4ccb80410aa6bc (patch)
tree4a84aa38029d029f8b96ee8a404a008eea424eb5 /lld/lib/ReaderWriter/ELF
parent21923996f84205d9dfbaf6095d61647b42ff2e08 (diff)
downloadbcm5719-llvm-f91b22ce2cb295da994a3488fd4ccb80410aa6bc.tar.gz
bcm5719-llvm-f91b22ce2cb295da994a3488fd4ccb80410aa6bc.zip
Move SimpleDefinedAtom::addReference to DefinedAtom.
Most of the other methods to access Reference's were on DefinedAtom so this just keeps them all together. This will be used in a future patch in ObjCPass which needs to add new references. The method is virtual because we may add references to different data structures depending on whether we parsed a macho file or yaml. llvm-svn: 259436
Diffstat (limited to 'lld/lib/ReaderWriter/ELF')
-rw-r--r--lld/lib/ReaderWriter/ELF/Atoms.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lld/lib/ReaderWriter/ELF/Atoms.h b/lld/lib/ReaderWriter/ELF/Atoms.h
index 390c0e16baf..cc425631d82 100644
--- a/lld/lib/ReaderWriter/ELF/Atoms.h
+++ b/lld/lib/ReaderWriter/ELF/Atoms.h
@@ -170,6 +170,8 @@ public:
DefinedAtom::reference_iterator end() const override;
const Reference *derefIterator(const void *It) const override;
void incrementIterator(const void *&It) const override;
+
+ using DefinedAtom::addReference;
void addReference(ELFReference<ELFT> *reference);
virtual void setOrdinal(uint64_t ord) { _ordinal = ord; }
OpenPOWER on IntegriCloud