summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-rtdyld
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2015-07-28 17:52:11 +0000
committerLang Hames <lhames@gmail.com>2015-07-28 17:52:11 +0000
commit2e88f4fc5fd461d5eb846c9aa91daaa369aeba48 (patch)
treea4fe0724c3e5496e504af043070210cc55d6a0b1 /llvm/tools/llvm-rtdyld
parente159a73c76f35c8fde58ffea0f6f304cb56e7634 (diff)
downloadbcm5719-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/tools/llvm-rtdyld')
-rw-r--r--llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp b/llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp
index 86f66f89b15..51d68bf3040 100644
--- a/llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp
+++ b/llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp
@@ -277,6 +277,7 @@ static int printLineInfoForInput(bool LoadObjects, bool UseDebugObj) {
if (UseDebugObj) {
DebugObj = LoadedObjInfo->getObjectForDebug(Obj);
SymbolObj = DebugObj.getBinary();
+ LoadedObjInfo.release();
}
}
@@ -308,7 +309,7 @@ static int printLineInfoForInput(bool LoadObjects, bool UseDebugObj) {
StringRef SecName;
Sec->getName(SecName);
uint64_t SectionLoadAddress =
- LoadedObjInfo->getSectionLoadAddress(SecName);
+ LoadedObjInfo->getSectionLoadAddress(*Sec);
if (SectionLoadAddress != 0)
Addr += SectionLoadAddress - Sec->getAddress();
}
OpenPOWER on IntegriCloud