Subversion Repositories QNX 8.QNX8 LLVM/Clang compiler suite

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
14 pmbaty 1
//===- llvm/DebugInfod/BuildIDFetcher.h - Build ID fetcher ------*- C++ -*-===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
///
9
/// \file
10
/// This file declares a Build ID fetcher implementation for obtaining debug
11
/// info from debuginfod.
12
///
13
//===----------------------------------------------------------------------===//
14
 
15
#ifndef LLVM_DEBUGINFOD_DIFETCHER_H
16
#define LLVM_DEBUGINFOD_DIFETCHER_H
17
 
18
#include "llvm/Object/BuildID.h"
19
#include <optional>
20
 
21
namespace llvm {
22
 
23
class DebuginfodFetcher : public object::BuildIDFetcher {
24
public:
25
  DebuginfodFetcher(std::vector<std::string> DebugFileDirectories)
26
      : BuildIDFetcher(std::move(DebugFileDirectories)) {}
27
  virtual ~DebuginfodFetcher() = default;
28
 
29
  /// Fetches the given Build ID using debuginfod and returns a local path to
30
  /// the resulting file.
31
  std::optional<std::string> fetch(object::BuildIDRef BuildID) const override;
32
};
33
 
34
} // namespace llvm
35
 
36
#endif // LLVM_DEBUGINFOD_DIFETCHER_H