diff options
author | Lang Hames <lhames@gmail.com> | 2015-07-28 17:52:11 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2015-07-28 17:52:11 +0000 |
commit | 2e88f4fc5fd461d5eb846c9aa91daaa369aeba48 (patch) | |
tree | a4fe0724c3e5496e504af043070210cc55d6a0b1 /llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp | |
parent | e159a73c76f35c8fde58ffea0f6f304cb56e7634 (diff) | |
download | bcm5719-llvm-2e88f4fc5fd461d5eb846c9aa91daaa369aeba48.tar.gz bcm5719-llvm-2e88f4fc5fd461d5eb846c9aa91daaa369aeba48.zip |
[RuntimeDyld] Make LoadedObjectInfo::getLoadedSectionAddress take a SectionRef
rather than a string section name.
llvm-svn: 243456
Diffstat (limited to 'llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp index c61b1c2fb27..c9bd11a1e1d 100644 --- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp +++ b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp @@ -29,9 +29,9 @@ namespace { class LoadedMachOObjectInfo : public RuntimeDyld::LoadedObjectInfoHelper<LoadedMachOObjectInfo> { public: - LoadedMachOObjectInfo(RuntimeDyldImpl &RTDyld, unsigned BeginIdx, - unsigned EndIdx) - : LoadedObjectInfoHelper(RTDyld, BeginIdx, EndIdx) {} + LoadedMachOObjectInfo(RuntimeDyldImpl &RTDyld, + ObjSectionToIDMap ObjSecToIDMap) + : LoadedObjectInfoHelper(RTDyld, std::move(ObjSecToIDMap)) {} OwningBinary<ObjectFile> getObjectForDebug(const ObjectFile &Obj) const override { @@ -334,10 +334,7 @@ RuntimeDyldMachO::create(Triple::ArchType Arch, std::unique_ptr<RuntimeDyld::LoadedObjectInfo> RuntimeDyldMachO::loadObject(const object::ObjectFile &O) { - unsigned SectionStartIdx, SectionEndIdx; - std::tie(SectionStartIdx, SectionEndIdx) = loadObjectImpl(O); - return llvm::make_unique<LoadedMachOObjectInfo>(*this, SectionStartIdx, - SectionEndIdx); + return llvm::make_unique<LoadedMachOObjectInfo>(*this, loadObjectImpl(O)); } } // end namespace llvm |