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 | 7608dc0441d4b036e7b75d4940e9ce73aea62439 (patch) | |
tree | fc0b3b698e02f8bbaf1ee9762d530a346bfd4d0a /llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h | |
parent | 330ec978a63082d5dcd1e2f8feec22b7b3f20686 (diff) | |
download | bcm5719-llvm-7608dc0441d4b036e7b75d4940e9ce73aea62439.tar.gz bcm5719-llvm-7608dc0441d4b036e7b75d4940e9ce73aea62439.zip |
[RuntimeDyld] clang-format files.
llvm-svn: 204507
Diffstat (limited to 'llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h')
-rw-r--r-- | llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h | 61 |
1 files changed, 22 insertions, 39 deletions
diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h index 48b0481ce58..edcd8895e1f 100644 --- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h +++ b/llvm/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); } }; |