Add concrete type overloads to PDBSymbol::findChildren().
[oota-llvm.git] / include / llvm / DebugInfo / PDB / PDBSymbolCompiland.h
1 //===- PDBSymbolCompiland.h - Accessors for querying PDB compilands -----*-===//
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 #ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLCOMPILAND_H
10 #define LLVM_DEBUGINFO_PDB_PDBSYMBOLCOMPILAND_H
11
12 #include <string>
13
14 #include "PDBSymbol.h"
15 #include "PDBTypes.h"
16
17 namespace llvm {
18
19 class raw_ostream;
20
21 class PDBSymbolCompiland : public PDBSymbol {
22 public:
23   PDBSymbolCompiland(const IPDBSession &PDBSession,
24                      std::unique_ptr<IPDBRawSymbol> CompilandSymbol);
25
26   DECLARE_PDB_SYMBOL_CONCRETE_TYPE(PDB_SymType::Compiland)
27
28   void dump(raw_ostream &OS, int Indent, PDB_DumpLevel Level) const override;
29
30   FORWARD_SYMBOL_METHOD(isEditAndContinueEnabled)
31   FORWARD_SYMBOL_METHOD(getLexicalParentId)
32   FORWARD_SYMBOL_METHOD(getLibraryName)
33   FORWARD_SYMBOL_METHOD(getName)
34   FORWARD_SYMBOL_METHOD(getSourceFileName)
35   FORWARD_SYMBOL_METHOD(getSymIndexId)
36 };
37 }
38
39 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLCOMPILAND_H