diff options
author | Nick Kledzik <kledzik@apple.com> | 2014-07-16 19:49:02 +0000 |
---|---|---|
committer | Nick Kledzik <kledzik@apple.com> | 2014-07-16 19:49:02 +0000 |
commit | 2458bec7e740643bdfa3c0e89d60704e225b78cb (patch) | |
tree | 70f5db902303075775247b5b27109a135744110a /lld/lib/ReaderWriter/MachO/File.h | |
parent | ac451066f48820a0be4bccba0a64b7c2e2dc0c35 (diff) | |
download | bcm5719-llvm-2458bec7e740643bdfa3c0e89d60704e225b78cb.tar.gz bcm5719-llvm-2458bec7e740643bdfa3c0e89d60704e225b78cb.zip |
[mach-o] refactor KindHandler into ArchHandler and simplify passes.
All architecture specific handling is now done in the appropriate
ArchHandler subclass.
The StubsPass and GOTPass have been simplified. All architecture specific
variations in stubs are now encoded in a table which is vended by the
current ArchHandler.
llvm-svn: 213187
Diffstat (limited to 'lld/lib/ReaderWriter/MachO/File.h')
-rw-r--r-- | lld/lib/ReaderWriter/MachO/File.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lld/lib/ReaderWriter/MachO/File.h b/lld/lib/ReaderWriter/MachO/File.h index 0cafc4c67dc..dffc14952b6 100644 --- a/lld/lib/ReaderWriter/MachO/File.h +++ b/lld/lib/ReaderWriter/MachO/File.h @@ -10,13 +10,14 @@ #ifndef LLD_READER_WRITER_MACHO_FILE_H #define LLD_READER_WRITER_MACHO_FILE_H -#include "llvm/ADT/StringMap.h" - #include "Atoms.h" +#include "MachONormalizedFile.h" #include "lld/Core/Simple.h" #include "lld/Core/SharedLibraryFile.h" +#include "llvm/ADT/StringMap.h" + #include <unordered_map> namespace lld { @@ -138,6 +139,8 @@ public: return pos->second; } + llvm::BumpPtrAllocator &allocator() { return _allocator; } + private: struct SectionOffsetAndAtom { uint64_t offset; MachODefinedAtom *atom; }; |