[llvm] 4111faf - [ORC] Fix JITDylib debug output: don't output symbol table entry flags twice.

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 3 23:34:41 PST 2022


Author: Lang Hames
Date: 2022-02-04T18:34:32+11:00
New Revision: 4111fafa5b8810887a3465e67937681df1a7342a

URL: https://github.com/llvm/llvm-project/commit/4111fafa5b8810887a3465e67937681df1a7342a
DIFF: https://github.com/llvm/llvm-project/commit/4111fafa5b8810887a3465e67937681df1a7342a.diff

LOG: [ORC] Fix JITDylib debug output: don't output symbol table entry flags twice.

Added: 
    

Modified: 
    llvm/lib/ExecutionEngine/Orc/Core.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/ExecutionEngine/Orc/Core.cpp b/llvm/lib/ExecutionEngine/Orc/Core.cpp
index e5cb8103919a7..1b1ba28e8ead0 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 << "<not resolved> ";
 
-      OS << KV.second.getFlags() << " " << KV.second.getState();
+      OS << " " << KV.second.getFlags() << " " << KV.second.getState();
 
       if (KV.second.hasMaterializerAttached()) {
         OS << " (Materializer ";


        


More information about the llvm-commits mailing list