summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Orc/LazyReexports.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2018-09-28 15:03:11 +0000
committerLang Hames <lhames@gmail.com>2018-09-28 15:03:11 +0000
commit46f40a7128dafa52c7e8ba90dd0d6664337ae5ad (patch)
tree160c6f4fb723fa90f0ea52e95d28bd7a6115031c /llvm/lib/ExecutionEngine/Orc/LazyReexports.cpp
parent83cd9b32dd90d4926ef12a4008a96c5dc19f91b8 (diff)
downloadbcm5719-llvm-46f40a7128dafa52c7e8ba90dd0d6664337ae5ad.tar.gz
bcm5719-llvm-46f40a7128dafa52c7e8ba90dd0d6664337ae5ad.zip
[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
Diffstat (limited to 'llvm/lib/ExecutionEngine/Orc/LazyReexports.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/Orc/LazyReexports.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/Orc/LazyReexports.cpp b/llvm/lib/ExecutionEngine/Orc/LazyReexports.cpp
index c3270053d2d..72db80bea87 100644
--- a/llvm/lib/ExecutionEngine/Orc/LazyReexports.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/LazyReexports.cpp
@@ -135,6 +135,10 @@ LazyReexportsMaterializationUnit::LazyReexportsMaterializationUnit(
return ISManager.updatePointer(*SymbolName, ResolvedAddr);
})) {}
+StringRef LazyReexportsMaterializationUnit::getName() const {
+ return "<Lazy Reexports>";
+}
+
void LazyReexportsMaterializationUnit::materialize(
MaterializationResponsibility R) {
auto RequestedSymbols = R.getRequestedSymbols();
OpenPOWER on IntegriCloud