1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

[ORC] Dump flags for JITDylib symbol table entries.

This can help when debugging flag-specific symbol table issues.

llvm-svn: 344993
This commit is contained in:
Lang Hames 2018-10-23 01:36:31 +00:00
parent c57ddc7636
commit 1f0a8fb0ba

View File

@ -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";
}