[llvm] r344993 - [ORC] Dump flags for JITDylib symbol table entries.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 22 18:36:31 PDT 2018
Author: lhames
Date: Mon Oct 22 18:36:31 2018
New Revision: 344993
URL: http://llvm.org/viewvc/llvm-project?rev=344993&view=rev
Log:
[ORC] Dump flags for JITDylib symbol table entries.
This can help when debugging flag-specific symbol table issues.
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=344993&r1=344992&r2=344993&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/Orc/Core.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/Orc/Core.cpp Mon Oct 22 18:36:31 2018
@@ -1386,7 +1386,7 @@ void JITDylib::dump(raw_ostream &OS) {
for (auto &KV : Symbols) {
OS << " \"" << *KV.first << "\": ";
if (auto Addr = KV.second.getAddress())
- OS << format("0x%016x", Addr);
+ OS << format("0x%016x", Addr) << ", " << KV.second.getFlags();
else
OS << "<not resolved>";
if (KV.second.getFlags().isLazy() ||
@@ -1400,7 +1400,7 @@ void JITDylib::dump(raw_ostream &OS) {
}
if (KV.second.getFlags().isMaterializing())
OS << " Materializing";
- OS << " )\n";
+ OS << ", " << KV.second.getFlags() << " )\n";
} else
OS << "\n";
}
More information about the llvm-commits
mailing list