summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/MachO/Atoms.h
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/MachO/Atoms.h
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/MachO/Atoms.h')
-rw-r--r--lld/lib/ReaderWriter/MachO/Atoms.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/lld/lib/ReaderWriter/MachO/Atoms.h b/lld/lib/ReaderWriter/MachO/Atoms.h
index 9f2e5acad99..f50a6cffe18 100644
--- a/lld/lib/ReaderWriter/MachO/Atoms.h
+++ b/lld/lib/ReaderWriter/MachO/Atoms.h
@@ -61,15 +61,6 @@ public:
bool isThumb() const { return _thumb; }
- void addReference(uint32_t offsetInAtom, uint16_t relocType,
- const Atom *target, Reference::Addend addend,
- Reference::KindArch arch = Reference::KindArch::x86_64,
- Reference::KindNamespace ns
- = Reference::KindNamespace::mach_o) {
- SimpleDefinedAtom::addReference(ns, arch, relocType, offsetInAtom, target,
- addend);
- }
-
private:
const StringRef _name;
const ArrayRef<uint8_t> _content;
OpenPOWER on IntegriCloud