From 1aa3292a4355268bc8f7339cc499526595b54973 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Tue, 23 Oct 2018 01:36:31 +0000 Subject: [PATCH] [ORC] Dump flags for JITDylib symbol table entries. This can help when debugging flag-specific symbol table issues. llvm-svn: 344993 --- llvm/lib/ExecutionEngine/Orc/Core.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/ExecutionEngine/Orc/Core.cpp b/llvm/lib/ExecutionEngine/Orc/Core.cpp index 5e31e44..6c7a952 100644 --- a/llvm/lib/ExecutionEngine/Orc/Core.cpp +++ b/llvm/lib/ExecutionEngine/Orc/Core.cpp @@ -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 << ""; 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"; } -- 2.7.4