diff options
| author | Lang Hames <lhames@gmail.com> | 2018-10-23 01:36:32 +0000 |
|---|---|---|
| committer | Lang Hames <lhames@gmail.com> | 2018-10-23 01:36:32 +0000 |
| commit | 3d16af69cfec6073c70d1e54d905b2fd155f25c7 (patch) | |
| tree | f0578be5bbeb4ffd022d968e43ce2955cfe4efee /llvm/lib | |
| parent | 1aa3292a4355268bc8f7339cc499526595b54973 (diff) | |
| download | bcm5719-llvm-3d16af69cfec6073c70d1e54d905b2fd155f25c7.tar.gz bcm5719-llvm-3d16af69cfec6073c70d1e54d905b2fd155f25c7.zip | |
[ORC] Show JITDylib search order in JITDylib::dump.
This can be helpful in debugging search-order related failures.
llvm-svn: 344994
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/ExecutionEngine/Orc/Core.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/Orc/Core.cpp b/llvm/lib/ExecutionEngine/Orc/Core.cpp index 6c7a952c648..df4d0028a4a 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<uintptr_t>(&ES)) << "):\n" + << "Search order: ["; + for (auto *JD : SearchOrder) + OS << " \"" << JD->getName() << "\""; + OS << " ]\n" << "Symbol table:\n"; for (auto &KV : Symbols) { |

