1 //===- PDBTypeServerHandler.h -----------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_DEBUGINFO_PDB_PDBTYPESERVERHANDLER_H
11 #define LLVM_DEBUGINFO_PDB_PDBTYPESERVERHANDLER_H
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"
27 class PDBTypeServerHandler : public codeview::TypeServerHandler {
29 PDBTypeServerHandler(bool RevisitAlways = false);
31 void addSearchPath(StringRef Path);
32 Expected<bool> handle(codeview::TypeServer2Record &TS,
33 codeview::TypeVisitorCallbacks &Callbacks) override;
36 Expected<bool> handleInternal(PDBFile &File,
37 codeview::TypeVisitorCallbacks &Callbacks);
40 std::unique_ptr<NativeSession> Session;
41 StringSet<> SearchPaths;