[llvm] [Debuginfo] add debuginfod factory method (PR #154633)
Daniel Thornburgh via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 25 11:56:02 PDT 2025
================
@@ -567,10 +567,10 @@ Expected<std::string> DebuginfodCollection::findDebugBinaryPath(BuildIDRef ID) {
return getCachedOrDownloadDebuginfo(ID);
}
-DebuginfodServer::DebuginfodServer(DebuginfodLog &Log,
- DebuginfodCollection &Collection)
- : Log(Log), Collection(Collection) {
- cantFail(
+Error DebuginfodServer::init(DebuginfodLog &Log,
+ DebuginfodCollection &Collection) {
+
+ Error Errd =
----------------
mysterymath wrote:
Idiomatically, there should be one `Err` variable that is reused throughout a routine.
https://github.com/llvm/llvm-project/pull/154633
More information about the llvm-commits
mailing list