[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


================
@@ -131,8 +131,12 @@ int llvm_debuginfod_main(int argc, char **argv, const llvm::ToolContext &) {
   DefaultThreadPool Pool(hardware_concurrency(MaxConcurrency));
   DebuginfodLog Log;
   DebuginfodCollection Collection(Paths, Log, Pool, MinInterval);
-  DebuginfodServer Server(Log, Collection);
-
+  auto ExpServer = DebuginfodServer::create(Log, Collection);
----------------
mysterymath wrote:

`DebuginfodServer Server = ExitOnErr(DebuginfodServer::create(Log, Collection));`

https://github.com/llvm/llvm-project/pull/154633


More information about the llvm-commits mailing list