[llvm] [Debuginfo] add debuginfod factory method (PR #154633)
Daniel Thornburgh via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 25 11:56:03 PDT 2025
================
@@ -605,7 +608,20 @@ DebuginfodServer::DebuginfodServer(DebuginfodLog &Log,
return;
}
streamFile(Request, *PathOrErr);
- }));
+ });
+ if (Erre) {
+ return std::move(Erre);
+ }
+ return Error::success();
+}
+
+Expected<DebuginfodServer>
+DebuginfodServer::create(DebuginfodLog &Log, DebuginfodCollection &Collection) {
+ DebuginfodServer Serverd;
+ llvm::Error Err = Serverd.init(Log, Collection);
----------------
mysterymath wrote:
`if (llvm::Error Err = ...)`
https://github.com/llvm/llvm-project/pull/154633
More information about the llvm-commits
mailing list