PDBSymbolFunc.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- PDBSymbolFunc.h - class representing a function instance -*- 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_PDBSYMBOLFUNC_H
  14. #define LLVM_DEBUGINFO_PDB_PDBSYMBOLFUNC_H
  15. #include "llvm/DebugInfo/PDB/IPDBRawSymbol.h"
  16. #include "PDBSymbol.h"
  17. #include "PDBTypes.h"
  18. namespace llvm {
  19. namespace pdb {
  20. class PDBSymDumper;
  21. class PDBSymbolData;
  22. class PDBSymbolTypeFunctionSig;
  23. template <typename ChildType> class IPDBEnumChildren;
  24. class PDBSymbolFunc : public PDBSymbol {
  25. DECLARE_PDB_SYMBOL_CONCRETE_TYPE(PDB_SymType::Function)
  26. public:
  27. void dump(PDBSymDumper &Dumper) const override;
  28. bool isDestructor() const;
  29. std::unique_ptr<IPDBEnumChildren<PDBSymbolData>> getArguments() const;
  30. FORWARD_SYMBOL_METHOD(getAccess)
  31. FORWARD_SYMBOL_METHOD(getAddressOffset)
  32. FORWARD_SYMBOL_METHOD(getAddressSection)
  33. FORWARD_SYMBOL_ID_METHOD(getClassParent)
  34. FORWARD_SYMBOL_METHOD(isCompilerGenerated)
  35. FORWARD_SYMBOL_METHOD(isConstructorVirtualBase)
  36. FORWARD_SYMBOL_METHOD(isConstType)
  37. FORWARD_SYMBOL_METHOD(isCxxReturnUdt)
  38. FORWARD_SYMBOL_METHOD(hasCustomCallingConvention)
  39. FORWARD_SYMBOL_METHOD(hasFarReturn)
  40. FORWARD_SYMBOL_METHOD(hasAlloca)
  41. FORWARD_SYMBOL_METHOD(hasEH)
  42. FORWARD_SYMBOL_METHOD(hasEHa)
  43. FORWARD_SYMBOL_METHOD(hasInlAsm)
  44. FORWARD_SYMBOL_METHOD(hasLongJump)
  45. FORWARD_SYMBOL_METHOD(hasSEH)
  46. FORWARD_SYMBOL_METHOD(hasSecurityChecks)
  47. FORWARD_SYMBOL_METHOD(hasSetJump)
  48. FORWARD_SYMBOL_METHOD(hasInterruptReturn)
  49. FORWARD_SYMBOL_METHOD(isIntroVirtualFunction)
  50. FORWARD_SYMBOL_METHOD(hasInlineAttribute)
  51. FORWARD_SYMBOL_METHOD(isNaked)
  52. FORWARD_SYMBOL_METHOD(isStatic)
  53. FORWARD_SYMBOL_METHOD(getLength)
  54. FORWARD_SYMBOL_ID_METHOD(getLexicalParent)
  55. FORWARD_SYMBOL_METHOD(getLocalBasePointerRegisterId)
  56. FORWARD_SYMBOL_METHOD(getLocationType)
  57. FORWARD_SYMBOL_METHOD(getName)
  58. FORWARD_SYMBOL_METHOD(hasFramePointer)
  59. FORWARD_SYMBOL_METHOD(hasNoInlineAttribute)
  60. FORWARD_SYMBOL_METHOD(hasNoReturnAttribute)
  61. FORWARD_SYMBOL_METHOD(isUnreached)
  62. FORWARD_SYMBOL_METHOD(getNoStackOrdering)
  63. FORWARD_SYMBOL_METHOD(hasOptimizedCodeDebugInfo)
  64. FORWARD_SYMBOL_METHOD(isPureVirtual)
  65. FORWARD_SYMBOL_METHOD(getRelativeVirtualAddress)
  66. FORWARD_SYMBOL_METHOD(getToken)
  67. FORWARD_CONCRETE_SYMBOL_ID_METHOD_WITH_NAME(PDBSymbolTypeFunctionSig, getType,
  68. getSignature)
  69. FORWARD_SYMBOL_METHOD(isUnalignedType)
  70. FORWARD_SYMBOL_METHOD(getUndecoratedName)
  71. FORWARD_SYMBOL_METHOD(isVirtual)
  72. FORWARD_SYMBOL_METHOD(getVirtualAddress)
  73. FORWARD_SYMBOL_METHOD(getVirtualBaseOffset)
  74. FORWARD_SYMBOL_METHOD(isVolatileType)
  75. std::unique_ptr<IPDBEnumLineNumbers> getLineNumbers() const;
  76. uint32_t getCompilandId() const;
  77. };
  78. } // namespace pdb
  79. } // namespace llvm
  80. #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLFUNC_H
  81. #ifdef __GNUC__
  82. #pragma GCC diagnostic pop
  83. #endif