From 3d16af69cfec6073c70d1e54d905b2fd155f25c7 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Tue, 23 Oct 2018 01:36:32 +0000 Subject: [PATCH] [ORC] Show JITDylib search order in JITDylib::dump. This can be helpful in debugging search-order related failures. llvm-svn: 344994 --- llvm/lib/ExecutionEngine/Orc/Core.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/llvm/lib/ExecutionEngine/Orc/Core.cpp b/llvm/lib/ExecutionEngine/Orc/Core.cpp index 6c7a952..df4d002 100644 --- a/llvm/lib/ExecutionEngine/Orc/Core.cpp +++ b/llvm/lib/ExecutionEngine/Orc/Core.cpp @@ -1381,6 +1381,10 @@ void JITDylib::dump(raw_ostream &OS) { OS << "JITDylib \"" << JITDylibName << "\" (ES: " << format("0x%016x", reinterpret_cast(&ES)) << "):\n" + << "Search order: ["; + for (auto *JD : SearchOrder) + OS << " \"" << JD->getName() << "\""; + OS << " ]\n" << "Symbol table:\n"; for (auto &KV : Symbols) { -- 2.7.4