[llvm] 0a927bd - [Orc] Reflow comment and improve name after fix (NFC)
Stefan Gränitz via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 31 03:04:20 PDT 2023
Author: Stefan Gränitz
Date: 2023-03-31T12:03:40+02:00
New Revision: 0a927bdc8375bf769f7d3d07478e442f36f7c54d
URL: https://github.com/llvm/llvm-project/commit/0a927bdc8375bf769f7d3d07478e442f36f7c54d
DIFF: https://github.com/llvm/llvm-project/commit/0a927bdc8375bf769f7d3d07478e442f36f7c54d.diff
LOG: [Orc] Reflow comment and improve name after fix (NFC)
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 633ed07594ce..f179aac2dfa0 100644
--- a/llvm/lib/ExecutionEngine/Orc/DebugObjectManagerPlugin.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/DebugObjectManagerPlugin.cpp
@@ -369,11 +369,10 @@ Error ELFDebugObject::recordSection(
StringRef Name, std::unique_ptr<ELFDebugObjectSection<ELFT>> Section) {
if (Error Err = Section->validateInBounds(this->getBuffer(), Name.data()))
return Err;
- auto ItInserted = Sections.try_emplace(Name, std::move(Section));
- if (!ItInserted.second)
+ bool Inserted = Sections.try_emplace(Name, std::move(Section)).second;
+ if (!Inserted)
LLVM_DEBUG(dbgs() << "Skipping debug registration for section '" << Name
- << "' "
- << "in object " << Buffer->getBufferIdentifier()
+ << "' in object " << Buffer->getBufferIdentifier()
<< " (duplicate name)\n");
return Error::success();
}
More information about the llvm-commits
mailing list