blob: ca8b39d03f86f2012ce613c866048456965f6eaf [file] [log] [blame]
Andrew Scull5e1ddfa2018-08-14 10:06:54 +01001//===- PDBSymbolCompiland.h - Accessors for querying PDB compilands -----*-===//
2//
Andrew Walbran16937d02019-10-22 13:54:20 +01003// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
Andrew Scull5e1ddfa2018-08-14 10:06:54 +01006//
7//===----------------------------------------------------------------------===//
8#ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLCOMPILAND_H
9#define LLVM_DEBUGINFO_PDB_PDBSYMBOLCOMPILAND_H
10
11#include "PDBSymbol.h"
12#include "PDBTypes.h"
13#include <string>
14
15namespace llvm {
16
17class raw_ostream;
18
19namespace pdb {
20
21class PDBSymbolCompiland : public PDBSymbol {
Andrew Scull5e1ddfa2018-08-14 10:06:54 +010022 DECLARE_PDB_SYMBOL_CONCRETE_TYPE(PDB_SymType::Compiland)
Andrew Scull0372a572018-11-16 15:47:06 +000023public:
Andrew Scull5e1ddfa2018-08-14 10:06:54 +010024 void dump(PDBSymDumper &Dumper) const override;
25
26 FORWARD_SYMBOL_METHOD(isEditAndContinueEnabled)
27 FORWARD_SYMBOL_ID_METHOD(getLexicalParent)
28 FORWARD_SYMBOL_METHOD(getLibraryName)
29 FORWARD_SYMBOL_METHOD(getName)
30
31 std::string getSourceFileName() const;
32 std::string getSourceFileFullPath() const;
33};
34}
35}
36
37#endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLCOMPILAND_H