Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:43:46

0001 //===- llvm/DebugInfod/BuildIDFetcher.h - Build ID fetcher ------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 ///
0009 /// \file
0010 /// This file declares a Build ID fetcher implementation for obtaining debug
0011 /// info from debuginfod.
0012 ///
0013 //===----------------------------------------------------------------------===//
0014 
0015 #ifndef LLVM_DEBUGINFOD_DIFETCHER_H
0016 #define LLVM_DEBUGINFOD_DIFETCHER_H
0017 
0018 #include "llvm/Object/BuildID.h"
0019 #include <optional>
0020 
0021 namespace llvm {
0022 
0023 class DebuginfodFetcher : public object::BuildIDFetcher {
0024 public:
0025   DebuginfodFetcher(std::vector<std::string> DebugFileDirectories)
0026       : BuildIDFetcher(std::move(DebugFileDirectories)) {}
0027   virtual ~DebuginfodFetcher() = default;
0028 
0029   /// Fetches the given Build ID using debuginfod and returns a local path to
0030   /// the resulting file.
0031   std::optional<std::string> fetch(object::BuildIDRef BuildID) const override;
0032 };
0033 
0034 } // namespace llvm
0035 
0036 #endif // LLVM_DEBUGINFOD_DIFETCHER_H