Path: blob/main/contrib/llvm-project/lld/COFF/PDB.h
34870 views
//===- PDB.h ----------------------------------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef LLD_COFF_PDB_H9#define LLD_COFF_PDB_H1011#include "llvm/ADT/ArrayRef.h"12#include "llvm/ADT/StringRef.h"13#include <optional>1415namespace llvm::codeview {16union DebugInfo;17}1819namespace lld {20class Timer;2122namespace coff {23class SectionChunk;24class COFFLinkerContext;2526void createPDB(COFFLinkerContext &ctx, llvm::ArrayRef<uint8_t> sectionTable,27llvm::codeview::DebugInfo *buildId);2829std::optional<std::pair<llvm::StringRef, uint32_t>>30getFileLineCodeView(const SectionChunk *c, uint32_t addr);3132} // namespace coff33} // namespace lld3435#endif363738