PDBSymbolCompiland.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- PDBSymbolCompiland.h - Accessors for querying PDB compilands -----*-===//
  7. //
  8. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  9. // See https://llvm.org/LICENSE.txt for license information.
  10. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  11. //
  12. //===----------------------------------------------------------------------===//
  13. #ifndef LLVM_DEBUGINFO_PDB_PDBSYMBOLCOMPILAND_H
  14. #define LLVM_DEBUGINFO_PDB_PDBSYMBOLCOMPILAND_H
  15. #include "PDBSymbol.h"
  16. #include "PDBTypes.h"
  17. #include <string>
  18. namespace llvm {
  19. class raw_ostream;
  20. namespace pdb {
  21. class PDBSymbolCompiland : public PDBSymbol {
  22. DECLARE_PDB_SYMBOL_CONCRETE_TYPE(PDB_SymType::Compiland)
  23. public:
  24. void dump(PDBSymDumper &Dumper) const override;
  25. FORWARD_SYMBOL_METHOD(isEditAndContinueEnabled)
  26. FORWARD_SYMBOL_ID_METHOD(getLexicalParent)
  27. FORWARD_SYMBOL_METHOD(getLibraryName)
  28. FORWARD_SYMBOL_METHOD(getName)
  29. std::string getSourceFileName() const;
  30. std::string getSourceFileFullPath() const;
  31. };
  32. }
  33. }
  34. #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLCOMPILAND_H
  35. #ifdef __GNUC__
  36. #pragma GCC diagnostic pop
  37. #endif