[llvm] 45b6fe8 - [ORC] Add more information to duplicate section error message.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 21 22:03:16 PDT 2022
Author: Lang Hames
Date: 2022-10-22T05:03:11Z
New Revision: 45b6fe8c69548581eec52771e3d3a4b73fdc7ed5
URL: https://github.com/llvm/llvm-project/commit/45b6fe8c69548581eec52771e3d3a4b73fdc7ed5
DIFF: https://github.com/llvm/llvm-project/commit/45b6fe8c69548581eec52771e3d3a4b73fdc7ed5.diff
LOG: [ORC] Add more information to duplicate section error message.
Now includes the name of the graph and duplicate section.
Added:
Modified:
llvm/lib/ExecutionEngine/Orc/DebugObjectManagerPlugin.cpp
Removed:
################################################################################
diff --git a/llvm/lib/ExecutionEngine/Orc/DebugObjectManagerPlugin.cpp b/llvm/lib/ExecutionEngine/Orc/DebugObjectManagerPlugin.cpp
index 1e68ea1225e6c..690f6b24e78a4 100644
--- a/llvm/lib/ExecutionEngine/Orc/DebugObjectManagerPlugin.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/DebugObjectManagerPlugin.cpp
@@ -370,7 +370,9 @@ Error ELFDebugObject::recordSection(
return Err;
auto ItInserted = Sections.try_emplace(Name, std::move(Section));
if (!ItInserted.second)
- return make_error<StringError>("Duplicate section",
+ return make_error<StringError>("In " + Buffer->getBufferIdentifier() +
+ ", encountered duplicate section \"" +
+ Name + "\" while building debug object",
inconvertibleErrorCode());
return Error::success();
}
More information about the llvm-commits
mailing list