From 4111fafa5b8810887a3465e67937681df1a7342a Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Fri, 4 Feb 2022 18:28:25 +1100 Subject: [PATCH] [ORC] Fix JITDylib debug output: don't output symbol table entry flags twice. --- llvm/lib/ExecutionEngine/Orc/Core.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/llvm/lib/ExecutionEngine/Orc/Core.cpp b/llvm/lib/ExecutionEngine/Orc/Core.cpp index e5cb810..1b1ba28 100644 --- a/llvm/lib/ExecutionEngine/Orc/Core.cpp +++ b/llvm/lib/ExecutionEngine/Orc/Core.cpp @@ -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 << " "; - OS << KV.second.getFlags() << " " << KV.second.getState(); + OS << " " << KV.second.getFlags() << " " << KV.second.getState(); if (KV.second.hasMaterializerAttached()) { OS << " (Materializer "; -- 2.7.4