PDB.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- PDB.h - base header file for creating a PDB reader -------*- 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_PDB_H
  14. #define LLVM_DEBUGINFO_PDB_PDB_H
  15. #include "llvm/ADT/StringRef.h"
  16. #include "llvm/DebugInfo/PDB/PDBTypes.h"
  17. #include "llvm/Support/Error.h"
  18. #include <memory>
  19. namespace llvm {
  20. namespace pdb {
  21. class IPDBSession;
  22. Error loadDataForPDB(PDB_ReaderType Type, StringRef Path,
  23. std::unique_ptr<IPDBSession> &Session);
  24. Error loadDataForEXE(PDB_ReaderType Type, StringRef Path,
  25. std::unique_ptr<IPDBSession> &Session);
  26. } // end namespace pdb
  27. } // end namespace llvm
  28. #endif // LLVM_DEBUGINFO_PDB_PDB_H
  29. #ifdef __GNUC__
  30. #pragma GCC diagnostic pop
  31. #endif