diff options
Diffstat (limited to 'llvm/lib/ExecutionEngine/Orc/DebugUtils.cpp')
| -rw-r--r-- | llvm/lib/ExecutionEngine/Orc/DebugUtils.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/Orc/DebugUtils.cpp b/llvm/lib/ExecutionEngine/Orc/DebugUtils.cpp index 5b386a458f1f..028bd245fb55 100644 --- a/llvm/lib/ExecutionEngine/Orc/DebugUtils.cpp +++ b/llvm/lib/ExecutionEngine/Orc/DebugUtils.cpp @@ -297,6 +297,13 @@ raw_ostream &operator<<(raw_ostream &OS, const SymbolState &S) { llvm_unreachable("Invalid state"); } +raw_ostream &operator<<(raw_ostream &OS, const SymbolStringPool &SSP) { + std::lock_guard<std::mutex> Lock(SSP.PoolMutex); + for (auto &KV : SSP.Pool) + OS << KV.first() << ": " << KV.second << "\n"; + return OS; +} + DumpObjects::DumpObjects(std::string DumpDir, std::string IdentifierOverride) : DumpDir(std::move(DumpDir)), IdentifierOverride(std::move(IdentifierOverride)) { |
