[llvm] 53e2380 - [ORC] Add JITDylib name to debugging output when defining symbols.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 1 12:16:53 PDT 2020
Author: Lang Hames
Date: 2020-04-01T12:16:38-07:00
New Revision: 53e2380881076492b9124d726b6f38a7669c61cd
URL: https://github.com/llvm/llvm-project/commit/53e2380881076492b9124d726b6f38a7669c61cd
DIFF: https://github.com/llvm/llvm-project/commit/53e2380881076492b9124d726b6f38a7669c61cd.diff
LOG: [ORC] Add JITDylib name to debugging output when defining symbols.
Added:
Modified:
llvm/include/llvm/ExecutionEngine/Orc/Core.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/Core.h b/llvm/include/llvm/ExecutionEngine/Orc/Core.h
index 441713c2595d..be5152d09ad2 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/Core.h
+++ b/llvm/include/llvm/ExecutionEngine/Orc/Core.h
@@ -1309,11 +1309,14 @@ Error JITDylib::define(std::unique_ptr<MaterializationUnitType> &&MU) {
if (MU->getSymbols().empty()) {
// Empty MUs are allowable but pathological, so issue a warning.
DEBUG_WITH_TYPE("orc", {
- dbgs() << "Warning: Discarding empty MU " << MU->getName() << "\n";
+ dbgs() << "Warning: Discarding empty MU " << MU->getName() << " for "
+ << getName() << "\n";
});
return Error::success();
} else
- DEBUG_WITH_TYPE("orc", dbgs() << "Defining MU " << MU->getName() << ":\n");
+ DEBUG_WITH_TYPE("orc", {
+ dbgs() << "Defining MU " << MU->getName() << " for " << getName() << "\n";
+ });
return ES.runSessionLocked([&, this]() -> Error {
if (auto Err = defineImpl(*MU))
@@ -1340,11 +1343,14 @@ Error JITDylib::define(std::unique_ptr<MaterializationUnitType> &MU) {
if (MU->getSymbols().empty()) {
// Empty MUs are allowable but pathological, so issue a warning.
DEBUG_WITH_TYPE("orc", {
- dbgs() << "Warning: Discarding empty MU " << MU->getName() << "\n";
+ dbgs() << "Warning: Discarding empty MU " << MU->getName() << getName()
+ << "\n";
});
return Error::success();
} else
- DEBUG_WITH_TYPE("orc", dbgs() << "Defining MU " << MU->getName() << ":\n");
+ DEBUG_WITH_TYPE("orc", {
+ dbgs() << "Defining MU " << MU->getName() << " for " << getName() << "\n";
+ });
return ES.runSessionLocked([&, this]() -> Error {
if (auto Err = defineImpl(*MU))
More information about the llvm-commits
mailing list