IPDBSourceFile.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- IPDBSourceFile.h - base interface for a PDB source file --*- C++ -*-===//
  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_IPDBSOURCEFILE_H
  14. #define LLVM_DEBUGINFO_PDB_IPDBSOURCEFILE_H
  15. #include "PDBTypes.h"
  16. #include <memory>
  17. #include <string>
  18. namespace llvm {
  19. class raw_ostream;
  20. namespace pdb {
  21. /// IPDBSourceFile defines an interface used to represent source files whose
  22. /// information are stored in the PDB.
  23. class IPDBSourceFile {
  24. public:
  25. virtual ~IPDBSourceFile();
  26. void dump(raw_ostream &OS, int Indent) const;
  27. virtual std::string getFileName() const = 0;
  28. virtual uint32_t getUniqueId() const = 0;
  29. virtual std::string getChecksum() const = 0;
  30. virtual PDB_Checksum getChecksumType() const = 0;
  31. virtual std::unique_ptr<IPDBEnumChildren<PDBSymbolCompiland>>
  32. getCompilands() const = 0;
  33. };
  34. }
  35. }
  36. #endif
  37. #ifdef __GNUC__
  38. #pragma GCC diagnostic pop
  39. #endif