diff options
author | Juergen Ributzka <juergen@apple.com> | 2014-03-21 20:28:42 +0000 |
---|---|---|
committer | Juergen Ributzka <juergen@apple.com> | 2014-03-21 20:28:42 +0000 |
commit | b0e33fdcd0621495d93bcb1cbc324925e4c27ddd (patch) | |
tree | 2fc2cfce53f9e967befe96882f45c59414b3ee61 /lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h | |
parent | 4d221b3e89604126826732ea549a065a30276cd6 (diff) | |
download | llvm-b0e33fdcd0621495d93bcb1cbc324925e4c27ddd.tar.gz llvm-b0e33fdcd0621495d93bcb1cbc324925e4c27ddd.tar.bz2 llvm-b0e33fdcd0621495d93bcb1cbc324925e4c27ddd.tar.xz |
[RuntimeDyld] clang-format files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204507 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h')
-rw-r--r-- | lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h | 61 |
1 files changed, 22 insertions, 39 deletions
diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h index 48b0481ce5..edcd8895e1 100644 --- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h +++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h @@ -23,38 +23,21 @@ using namespace llvm; using namespace llvm::object; - namespace llvm { class RuntimeDyldMachO : public RuntimeDyldImpl { - bool resolveI386Relocation(uint8_t *LocalAddress, - uint64_t FinalAddress, - uint64_t Value, - bool isPCRel, - unsigned Type, - unsigned Size, - int64_t Addend); - bool resolveX86_64Relocation(uint8_t *LocalAddress, - uint64_t FinalAddress, - uint64_t Value, - bool isPCRel, - unsigned Type, - unsigned Size, - int64_t Addend); - bool resolveARMRelocation(uint8_t *LocalAddress, - uint64_t FinalAddress, - uint64_t Value, - bool isPCRel, - unsigned Type, - unsigned Size, - int64_t Addend); - - void resolveRelocation(const SectionEntry &Section, - uint64_t Offset, - uint64_t Value, - uint32_t Type, - int64_t Addend, - bool isPCRel, - unsigned Size); + bool resolveI386Relocation(uint8_t *LocalAddress, uint64_t FinalAddress, + uint64_t Value, bool isPCRel, unsigned Type, + unsigned Size, int64_t Addend); + bool resolveX86_64Relocation(uint8_t *LocalAddress, uint64_t FinalAddress, + uint64_t Value, bool isPCRel, unsigned Type, + unsigned Size, int64_t Addend); + bool resolveARMRelocation(uint8_t *LocalAddress, uint64_t FinalAddress, + uint64_t Value, bool isPCRel, unsigned Type, + unsigned Size, int64_t Addend); + + void resolveRelocation(const SectionEntry &Section, uint64_t Offset, + uint64_t Value, uint32_t Type, int64_t Addend, + bool isPCRel, unsigned Size); unsigned getMaxStubSize() override { if (Arch == Triple::arm || Arch == Triple::thumb) @@ -65,16 +48,15 @@ class RuntimeDyldMachO : public RuntimeDyldImpl { return 0; } - unsigned getStubAlignment() override { - return 1; - } + unsigned getStubAlignment() override { return 1; } struct EHFrameRelatedSections { - EHFrameRelatedSections() : EHFrameSID(RTDYLD_INVALID_SECTION_ID), - TextSID(RTDYLD_INVALID_SECTION_ID), - ExceptTabSID(RTDYLD_INVALID_SECTION_ID) {} + EHFrameRelatedSections() + : EHFrameSID(RTDYLD_INVALID_SECTION_ID), + TextSID(RTDYLD_INVALID_SECTION_ID), + ExceptTabSID(RTDYLD_INVALID_SECTION_ID) {} EHFrameRelatedSections(SID EH, SID T, SID Ex) - : EHFrameSID(EH), TextSID(T), ExceptTabSID(Ex) {} + : EHFrameSID(EH), TextSID(T), ExceptTabSID(Ex) {} SID EHFrameSID; SID TextSID; SID ExceptTabSID; @@ -84,6 +66,7 @@ class RuntimeDyldMachO : public RuntimeDyldImpl { // in a table until we receive a request to register all unregistered // EH frame sections with the memory manager. SmallVector<EHFrameRelatedSections, 2> UnregisteredEHFrameSections; + public: RuntimeDyldMachO(RTDyldMemoryManager *mm) : RuntimeDyldImpl(mm) {} @@ -97,12 +80,12 @@ public: void registerEHFrames() override; void finalizeLoad(ObjSectionToIDMap &SectionMap) override; - static ObjectImage *createObjectImage(ObjectBuffer *InputBuffer) { return new ObjectImageCommon(InputBuffer); } - static ObjectImage *createObjectImageFromFile(object::ObjectFile *InputObject) { + static ObjectImage * + createObjectImageFromFile(object::ObjectFile *InputObject) { return new ObjectImageCommon(InputObject); } }; |