2016-09-16 06:24:51 +08:00
|
|
|
//===- PDB.h ----------------------------------------------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Linker
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLD_COFF_PDB_H
|
|
|
|
#define LLD_COFF_PDB_H
|
|
|
|
|
2016-10-12 03:45:07 +08:00
|
|
|
#include "llvm/ADT/ArrayRef.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
|
|
|
|
|
|
|
std::pair<llvm::StringRef, uint32_t> getFileLine(const SectionChunk *C,
|
|
|
|
uint32_t Addr);
|
2016-09-16 06:24:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|