[llvm] r344994 - [ORC] Show JITDylib search order in JITDylib::dump.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 22 18:36:32 PDT 2018
Author: lhames
Date: Mon Oct 22 18:36:32 2018
New Revision: 344994
URL: http://llvm.org/viewvc/llvm-project?rev=344994&view=rev
Log:
[ORC] Show JITDylib search order in JITDylib::dump.
This can be helpful in debugging search-order related failures.
Modified:
llvm/trunk/lib/ExecutionEngine/Orc/Core.cpp
Modified: llvm/trunk/lib/ExecutionEngine/Orc/Core.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/Orc/Core.cpp?rev=344994&r1=344993&r2=344994&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/Orc/Core.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/Orc/Core.cpp Mon Oct 22 18:36:32 2018
@@ -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) {
More information about the llvm-commits
mailing list