[llvm] 86787f1 - [ORC] Add debug logging to JITDylib::addDependencies.

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 11 12:56:58 PST 2020


Author: Lang Hames
Date: 2020-02-11T12:56:40-08:00
New Revision: 86787f159a0737662a8a3086a9b03223ff839dd2

URL: https://github.com/llvm/llvm-project/commit/86787f159a0737662a8a3086a9b03223ff839dd2
DIFF: https://github.com/llvm/llvm-project/commit/86787f159a0737662a8a3086a9b03223ff839dd2.diff

LOG: [ORC] Add debug logging to JITDylib::addDependencies.

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 f2b161cc9fc1..a7af34a21926 100644
--- a/llvm/lib/ExecutionEngine/Orc/Core.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/Core.cpp
@@ -205,7 +205,7 @@ raw_ostream &operator<<(raw_ostream &OS, const SymbolMap &Symbols) {
 
 raw_ostream &operator<<(raw_ostream &OS,
                         const SymbolDependenceMap::value_type &KV) {
-  return OS << "(" << KV.first << ", " << KV.second << ")";
+  return OS << "(" << KV.first->getName() << ", " << KV.second << ")";
 }
 
 raw_ostream &operator<<(raw_ostream &OS, const SymbolDependenceMap &Deps) {
@@ -941,6 +941,11 @@ void JITDylib::addDependencies(const SymbolStringPtr &Name,
   assert(Symbols[Name].isInMaterializationPhase() &&
          "Can not add dependencies for a symbol that is not materializing");
 
+  LLVM_DEBUG({
+      dbgs() << "In " << getName() << " adding dependencies for "
+             << *Name << ": " << Dependencies << "\n";
+    });
+
   // If Name is already in an error state then just bail out.
   if (Symbols[Name].getFlags().hasError())
     return;


        


More information about the llvm-commits mailing list