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 "PDBSymbol.h"
13 #include "PDBTypes.h"
14 #include <string>
15 
16 namespace llvm {
17 
18 class raw_ostream;
19 
20 namespace pdb {
21 
22 class PDBSymbolCompiland : public PDBSymbol {
23 public:
24   PDBSymbolCompiland(const IPDBSession &PDBSession,
25                      std::unique_ptr<IPDBRawSymbol> CompilandSymbol);
26 
27   DECLARE_PDB_SYMBOL_CONCRETE_TYPE(PDB_SymType::Compiland)
28 
29   void dump(PDBSymDumper &Dumper) const override;
30 
31   FORWARD_SYMBOL_METHOD(isEditAndContinueEnabled)
32   FORWARD_SYMBOL_METHOD(getLexicalParentId)
33   FORWARD_SYMBOL_METHOD(getLibraryName)
34   FORWARD_SYMBOL_METHOD(getName)
35 
36   std::string getSourceFileName() const;
37 };
38 }
39 }
40 
41 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLCOMPILAND_H
42