zig/deps/lld/COFF/PDB.h

38 lines
989 B
C
Raw Normal View History

//===- PDB.h ----------------------------------------------------*- C++ -*-===//
//
2019-08-04 00:43:55 +08:00
// 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
//
//===----------------------------------------------------------------------===//
#ifndef LLD_COFF_PDB_H
#define LLD_COFF_PDB_H
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/StringRef.h"
namespace llvm {
namespace codeview {
union DebugInfo;
}
}
namespace lld {
namespace coff {
2018-01-18 06:29:21 +08:00
class OutputSection;
2018-08-05 05:47:16 +08:00
class SectionChunk;
class SymbolTable;
2019-08-04 00:43:55 +08:00
void createPDB(SymbolTable *symtab,
llvm::ArrayRef<OutputSection *> outputSections,
llvm::ArrayRef<uint8_t> sectionTable,
llvm::codeview::DebugInfo *buildId);
2018-08-05 05:47:16 +08:00
2019-08-04 00:43:55 +08:00
std::pair<llvm::StringRef, uint32_t> getFileLine(const SectionChunk *c,
uint32_t addr);
}
}
#endif