mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 22:07:27 +00:00
[MCJIT] Improve stub_addr file-not-found diagnostic to help track down a
buildbot failure. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213701 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
daf061cf05
commit
fa8abbd9be
@ -713,8 +713,23 @@ std::pair<uint64_t, std::string> RuntimeDyldCheckerImpl::getStubAddrFor(
|
||||
bool IsInsideLoad) const {
|
||||
|
||||
auto SI1 = Stubs.find(FileName);
|
||||
if (SI1 == Stubs.end())
|
||||
return std::make_pair(0, ("File '" + FileName + "' not found.\n").str());
|
||||
if (SI1 == Stubs.end()) {
|
||||
std::string ErrorMsg = "File '";
|
||||
ErrorMsg += FileName;
|
||||
ErrorMsg += "' not found. ";
|
||||
if (Stubs.empty())
|
||||
ErrorMsg += "No stubs registered.";
|
||||
else {
|
||||
ErrorMsg += "Available files are:";
|
||||
for (const auto& StubEntry : Stubs) {
|
||||
ErrorMsg += " '";
|
||||
ErrorMsg += StubEntry.first;
|
||||
ErrorMsg += "'";
|
||||
}
|
||||
}
|
||||
ErrorMsg += "\n";
|
||||
return std::make_pair(0, ErrorMsg);
|
||||
}
|
||||
|
||||
const SectionStubMap &SectionStubs = SI1->second;
|
||||
auto SI2 = SectionStubs.find(SectionName);
|
||||
|
Loading…
Reference in New Issue
Block a user