]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/include/llvm/DebugInfo/PDB/Native/PDBTypeServerHandler.h
Merge ^/head r319801 through r320041.
[FreeBSD/FreeBSD.git] / contrib / llvm / include / llvm / DebugInfo / PDB / Native / PDBTypeServerHandler.h
1 //===- PDBTypeServerHandler.h -----------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
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 LLVM_DEBUGINFO_PDB_PDBTYPESERVERHANDLER_H
11 #define LLVM_DEBUGINFO_PDB_PDBTYPESERVERHANDLER_H
12
13 #include "llvm/ADT/SmallString.h"
14 #include "llvm/ADT/StringSet.h"
15 #include "llvm/DebugInfo/CodeView/TypeRecord.h"
16 #include "llvm/DebugInfo/CodeView/TypeServerHandler.h"
17 #include "llvm/DebugInfo/PDB/Native/NativeSession.h"
18 #include "llvm/DebugInfo/PDB/PDBTypes.h"
19
20 #include <memory>
21 #include <string>
22
23 namespace llvm {
24 namespace pdb {
25 class NativeSession;
26
27 class PDBTypeServerHandler : public codeview::TypeServerHandler {
28 public:
29   PDBTypeServerHandler(bool RevisitAlways = false);
30
31   void addSearchPath(StringRef Path);
32   Expected<bool> handle(codeview::TypeServer2Record &TS,
33                         codeview::TypeVisitorCallbacks &Callbacks) override;
34
35 private:
36   Expected<bool> handleInternal(PDBFile &File,
37                                 codeview::TypeVisitorCallbacks &Callbacks);
38
39   bool RevisitAlways;
40   std::unique_ptr<NativeSession> Session;
41   StringSet<> SearchPaths;
42 };
43 }
44 }
45
46 #endif