[ORC] Fix JITDylib debug output: don't output symbol table entry flags twice.
authorLang Hames <lhames@gmail.com>
Fri, 4 Feb 2022 07:28:25 +0000 (18:28 +1100)
committerLang Hames <lhames@gmail.com>
Fri, 4 Feb 2022 07:34:32 +0000 (18:34 +1100)
llvm/lib/ExecutionEngine/Orc/Core.cpp

index e5cb810..1b1ba28 100644 (file)
@@ -1411,12 +1411,11 @@ void JITDylib::dump(raw_ostream &OS) {
     for (auto &KV : Symbols) {
       OS << "    \"" << *KV.first << "\": ";
       if (auto Addr = KV.second.getAddress())
-        OS << format("0x%016" PRIx64, Addr) << ", " << KV.second.getFlags()
-           << " ";
+        OS << format("0x%016" PRIx64, Addr);
       else
         OS << "<not resolved> ";
 
-      OS << KV.second.getFlags() << " " << KV.second.getState();
+      OS << " " << KV.second.getFlags() << " " << KV.second.getState();
 
       if (KV.second.hasMaterializerAttached()) {
         OS << " (Materializer ";