[llvm] 981f017 - [ORC] Print symbol flags and materializer name in ExecutionSession::dump.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 14 19:00:34 PDT 2020
Author: Lang Hames
Date: 2020-03-14T18:52:10-07:00
New Revision: 981f017c5c4562e1836bbb0288eb00a3f948fe7a
URL: https://github.com/llvm/llvm-project/commit/981f017c5c4562e1836bbb0288eb00a3f948fe7a
DIFF: https://github.com/llvm/llvm-project/commit/981f017c5c4562e1836bbb0288eb00a3f948fe7a.diff
LOG: [ORC] Print symbol flags and materializer name in ExecutionSession::dump.
The extra information can be helpful in diagnosing JIT bugs.
Added:
Modified:
llvm/lib/ExecutionEngine/Orc/Core.cpp
Removed:
################################################################################
diff --git a/llvm/lib/ExecutionEngine/Orc/Core.cpp b/llvm/lib/ExecutionEngine/Orc/Core.cpp
index 49b7395843a5..c651fe68cb15 100644
--- a/llvm/lib/ExecutionEngine/Orc/Core.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/Core.cpp
@@ -1761,14 +1761,14 @@ void JITDylib::dump(raw_ostream &OS) {
else
OS << "<not resolved> ";
- OS << KV.second.getState();
+ OS << KV.second.getFlags() << " " << KV.second.getState();
if (KV.second.hasMaterializerAttached()) {
OS << " (Materializer ";
auto I = UnmaterializedInfos.find(KV.first);
assert(I != UnmaterializedInfos.end() &&
"Lazy symbol should have UnmaterializedInfo");
- OS << I->second->MU.get() << ")\n";
+ OS << I->second->MU.get() << ", " << I->second->MU->getName() << ")\n";
} else
OS << "\n";
}
More information about the llvm-commits
mailing list