[ORC] Improve debugging output for ORC.
authorLang Hames <lhames@gmail.com>
Fri, 28 Sep 2018 15:03:11 +0000 (15:03 +0000)
committerLang Hames <lhames@gmail.com>
Fri, 28 Sep 2018 15:03:11 +0000 (15:03 +0000)
commit46f40a7128dafa52c7e8ba90dd0d6664337ae5ad
tree160c6f4fb723fa90f0ea52e95d28bd7a6115031c
parent83cd9b32dd90d4926ef12a4008a96c5dc19f91b8
[ORC] Improve debugging output for ORC.

(1) Print debugging output under a session lock to avoid garbled messages when
compiling on multiple threads.

(2) Name MaterializationUnits, add an ostream operator for them, and so they can
be easily referenced in debugging output, and have that ostream operator
optionally print code/data/hidden symbols provided by that materialization unit
based on command line options.

llvm-svn: 343323
llvm/include/llvm/ExecutionEngine/Orc/Core.h
llvm/include/llvm/ExecutionEngine/Orc/Layer.h
llvm/include/llvm/ExecutionEngine/Orc/LazyReexports.h
llvm/lib/ExecutionEngine/Orc/Core.cpp
llvm/lib/ExecutionEngine/Orc/IndirectionUtils.cpp
llvm/lib/ExecutionEngine/Orc/Layer.cpp
llvm/lib/ExecutionEngine/Orc/LazyReexports.cpp