Rewrite llvm-pdbdump in terms of LLVMDebugInfoPDB.
[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   void dump(raw_ostream &OS, int Indent, PDB_DumpLevel Level) const override;
27
28   FORWARD_SYMBOL_METHOD(isEditAndContinueEnabled)
29   FORWARD_SYMBOL_METHOD(getLexicalParentId)
30   FORWARD_SYMBOL_METHOD(getLibraryName)
31   FORWARD_SYMBOL_METHOD(getName)
32   FORWARD_SYMBOL_METHOD(getSourceFileName)
33   FORWARD_SYMBOL_METHOD(getSymIndexId)
34
35   static bool classof(const PDBSymbol *S) {
36     return S->getSymTag() == PDB_SymType::Compiland;
37   }
38 };
39 }
40
41 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLCOMPILAND_H