NativeCompilandSymbol.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- NativeCompilandSymbol.h - native impl for compiland syms -*- 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_NATIVE_NATIVECOMPILANDSYMBOL_H
  14. #define LLVM_DEBUGINFO_PDB_NATIVE_NATIVECOMPILANDSYMBOL_H
  15. #include "llvm/DebugInfo/PDB/Native/DbiModuleDescriptor.h"
  16. #include "llvm/DebugInfo/PDB/Native/NativeRawSymbol.h"
  17. namespace llvm {
  18. namespace pdb {
  19. class NativeCompilandSymbol : public NativeRawSymbol {
  20. public:
  21. NativeCompilandSymbol(NativeSession &Session, SymIndexId SymbolId,
  22. DbiModuleDescriptor MI);
  23. void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields,
  24. PdbSymbolIdField RecurseIdFields) const override;
  25. PDB_SymType getSymTag() const override;
  26. bool isEditAndContinueEnabled() const override;
  27. SymIndexId getLexicalParentId() const override;
  28. std::string getLibraryName() const override;
  29. std::string getName() const override;
  30. private:
  31. DbiModuleDescriptor Module;
  32. };
  33. } // namespace pdb
  34. } // namespace llvm
  35. #endif
  36. #ifdef __GNUC__
  37. #pragma GCC diagnostic pop
  38. #endif