]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lld/COFF/PDB.h
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lld / COFF / PDB.h
1 //===- PDB.h ----------------------------------------------------*- C++ -*-===//
2 //
3 //                             The LLVM Linker
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef LLD_COFF_PDB_H
11 #define LLD_COFF_PDB_H
12
13 #include "llvm/ADT/ArrayRef.h"
14 #include "llvm/ADT/StringRef.h"
15
16 namespace llvm {
17 namespace codeview {
18 union DebugInfo;
19 }
20 }
21
22 namespace lld {
23 namespace coff {
24 class OutputSection;
25 class SectionChunk;
26 class SymbolTable;
27
28 void createPDB(SymbolTable *Symtab,
29                llvm::ArrayRef<OutputSection *> OutputSections,
30                llvm::ArrayRef<uint8_t> SectionTable,
31                llvm::codeview::DebugInfo *BuildId);
32
33 std::pair<llvm::StringRef, uint32_t> getFileLine(const SectionChunk *C,
34                                                  uint32_t Addr);
35 }
36 }
37
38 #endif