[ORC] Show JITDylib search order in JITDylib::dump.

This can be helpful in debugging search-order related failures.

llvm-svn: 344994
This commit is contained in:
Lang Hames 2018-10-23 01:36:32 +00:00
parent 1aa3292a43
commit 3d16af69cf
1 changed files with 4 additions and 0 deletions

View File

@ -1381,6 +1381,10 @@ void JITDylib::dump(raw_ostream &OS) {
OS << "JITDylib \"" << JITDylibName
<< "\" (ES: " << format("0x%016x", reinterpret_cast<uintptr_t>(&ES))
<< "):\n"
<< "Search order: [";
for (auto *JD : SearchOrder)
OS << " \"" << JD->getName() << "\"";
OS << " ]\n"
<< "Symbol table:\n";
for (auto &KV : Symbols) {