diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-29 22:06:33 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-29 22:06:33 +0000 |
commit | 2b06530ed6a2108038b40ead5ceb469d371bad9a (patch) | |
tree | 07ec5f5fa6492c68ca13961e86a65fcecc53ae91 /llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h | |
parent | 4289a5a429e3901ff5391d94e894f7ce0029865f (diff) | |
download | bcm5719-llvm-2b06530ed6a2108038b40ead5ceb469d371bad9a.tar.gz bcm5719-llvm-2b06530ed6a2108038b40ead5ceb469d371bad9a.zip |
Rationalize what is public in RuntimeDyldMachO and RuntimeDyldELF.
The implemented RuntimeDyldImpl interface is public. Everything else is private.
Since these classes are not inherited from (yet), there is no need to have
protected members.
llvm-svn: 180733
Diffstat (limited to 'llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h')
-rw-r--r-- | llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h index 0fbfe038c88..8da6e35a87d 100644 --- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h +++ b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h @@ -25,7 +25,6 @@ using namespace llvm::object; namespace llvm { class RuntimeDyldMachO : public RuntimeDyldImpl { -protected: bool resolveI386Relocation(uint8_t *LocalAddress, uint64_t FinalAddress, uint64_t Value, @@ -48,13 +47,6 @@ protected: unsigned Size, int64_t Addend); - virtual void processRelocationRef(unsigned SectionID, - RelocationRef RelI, - ObjectImage &Obj, - ObjSectionToIDMap &ObjSectionToID, - const SymbolTableMap &Symbols, - StubMap &Stubs); - void resolveRelocation(const SectionEntry &Section, uint64_t Offset, uint64_t Value, @@ -63,11 +55,16 @@ protected: bool isPCRel, unsigned Size); public: - virtual void resolveRelocation(const RelocationEntry &RE, uint64_t Value); - RuntimeDyldMachO(RTDyldMemoryManager *mm) : RuntimeDyldImpl(mm) {} - bool isCompatibleFormat(const ObjectBuffer *Buffer) const; + virtual void resolveRelocation(const RelocationEntry &RE, uint64_t Value); + virtual void processRelocationRef(unsigned SectionID, + RelocationRef RelI, + ObjectImage &Obj, + ObjSectionToIDMap &ObjSectionToID, + const SymbolTableMap &Symbols, + StubMap &Stubs); + virtual bool isCompatibleFormat(const ObjectBuffer *Buffer) const; }; } // end namespace llvm |