2016-09-16 06:24:51 +08:00
|
|
|
//===- PDB.h ----------------------------------------------------*- C++ -*-===//
|
|
|
|
//
|
2019-01-19 16:50:56 +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
|
2016-09-16 06:24:51 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLD_COFF_PDB_H
|
|
|
|
#define LLD_COFF_PDB_H
|
|
|
|
|
2016-10-12 03:45:07 +08:00
|
|
|
#include "llvm/ADT/ArrayRef.h"
|
2019-10-15 17:18:18 +08:00
|
|
|
#include "llvm/ADT/Optional.h"
|
2016-09-16 06:24:51 +08:00
|
|
|
#include "llvm/ADT/StringRef.h"
|
|
|
|
|
2017-01-05 01:56:54 +08:00
|
|
|
namespace llvm {
|
|
|
|
namespace codeview {
|
|
|
|
union DebugInfo;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-09-16 06:24:51 +08:00
|
|
|
namespace lld {
|
|
|
|
namespace coff {
|
2017-08-04 05:15:09 +08:00
|
|
|
class OutputSection;
|
2018-04-18 07:32:33 +08:00
|
|
|
class SectionChunk;
|
2016-11-12 08:00:51 +08:00
|
|
|
class SymbolTable;
|
|
|
|
|
2017-08-04 05:15:09 +08:00
|
|
|
void createPDB(SymbolTable *symtab,
|
|
|
|
llvm::ArrayRef<OutputSection *> outputSections,
|
|
|
|
llvm::ArrayRef<uint8_t> sectionTable,
|
2018-09-16 02:37:22 +08:00
|
|
|
llvm::codeview::DebugInfo *buildId);
|
2018-04-18 07:32:33 +08:00
|
|
|
|
2019-10-15 17:18:18 +08:00
|
|
|
llvm::Optional<std::pair<llvm::StringRef, uint32_t>>
|
|
|
|
getFileLineCodeView(const SectionChunk *c, uint32_t addr);
|
|
|
|
} // namespace coff
|
|
|
|
} // namespace lld
|
2016-09-16 06:24:51 +08:00
|
|
|
|
|
|
|
#endif
|