//===- llvm/Object/BuildID.cpp - Build ID ---------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// /// /// \file /// This file defines a library for handling Build IDs and using them to find /// debug info. /// //===----------------------------------------------------------------------===// #include "llvm/Object/BuildID.h" #include "llvm/Object/ELFObjectFile.h" #include "llvm/Support/FileSystem.h" #include "llvm/Support/Path.h" usingnamespacellvm; usingnamespacellvm::object; namespace { template <typename ELFT> BuildIDRef getBuildID(const ELFFile<ELFT> &Obj) { … } } // namespace BuildID llvm::object::parseBuildID(StringRef Str) { … } BuildIDRef llvm::object::getBuildID(const ObjectFile *Obj) { … } std::optional<std::string> BuildIDFetcher::fetch(BuildIDRef BuildID) const { … }