Subversion Repositories QNX 8.QNX8 LLVM/Clang compiler suite

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. //===- NativeTypeUDT.h - info about class/struct type ------------*- C++-*-===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8.  
  9. #ifndef LLVM_DEBUGINFO_PDB_NATIVE_NATIVETYPEUDT_H
  10. #define LLVM_DEBUGINFO_PDB_NATIVE_NATIVETYPEUDT_H
  11.  
  12. #include "llvm/DebugInfo/CodeView/TypeIndex.h"
  13. #include "llvm/DebugInfo/CodeView/TypeRecord.h"
  14. #include "llvm/DebugInfo/PDB/IPDBRawSymbol.h"
  15. #include "llvm/DebugInfo/PDB/Native/NativeRawSymbol.h"
  16. #include "llvm/DebugInfo/PDB/PDBTypes.h"
  17.  
  18. namespace llvm {
  19.  
  20. class raw_ostream;
  21. namespace pdb {
  22. class NativeSession;
  23.  
  24. class NativeTypeUDT : public NativeRawSymbol {
  25. public:
  26.   NativeTypeUDT(NativeSession &Session, SymIndexId Id, codeview::TypeIndex TI,
  27.                 codeview::ClassRecord Class);
  28.  
  29.   NativeTypeUDT(NativeSession &Session, SymIndexId Id, codeview::TypeIndex TI,
  30.                 codeview::UnionRecord Union);
  31.  
  32.   NativeTypeUDT(NativeSession &Session, SymIndexId Id,
  33.                 NativeTypeUDT &UnmodifiedType,
  34.                 codeview::ModifierRecord Modifier);
  35.  
  36.   ~NativeTypeUDT() override;
  37.  
  38.   void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields,
  39.             PdbSymbolIdField RecurseIdFields) const override;
  40.  
  41.   std::string getName() const override;
  42.   SymIndexId getLexicalParentId() const override;
  43.   SymIndexId getUnmodifiedTypeId() const override;
  44.   SymIndexId getVirtualTableShapeId() const override;
  45.   uint64_t getLength() const override;
  46.   PDB_UdtType getUdtKind() const override;
  47.   bool hasConstructor() const override;
  48.   bool isConstType() const override;
  49.   bool hasAssignmentOperator() const override;
  50.   bool hasCastOperator() const override;
  51.   bool hasNestedTypes() const override;
  52.   bool hasOverloadedOperator() const override;
  53.   bool isInterfaceUdt() const override;
  54.   bool isIntrinsic() const override;
  55.   bool isNested() const override;
  56.   bool isPacked() const override;
  57.   bool isRefUdt() const override;
  58.   bool isScoped() const override;
  59.   bool isValueUdt() const override;
  60.   bool isUnalignedType() const override;
  61.   bool isVolatileType() const override;
  62.  
  63. protected:
  64.   codeview::TypeIndex Index;
  65.  
  66.   std::optional<codeview::ClassRecord> Class;
  67.   std::optional<codeview::UnionRecord> Union;
  68.   NativeTypeUDT *UnmodifiedType = nullptr;
  69.   codeview::TagRecord *Tag = nullptr;
  70.   std::optional<codeview::ModifierRecord> Modifiers;
  71. };
  72.  
  73. } // namespace pdb
  74. } // namespace llvm
  75.  
  76. #endif // LLVM_DEBUGINFO_PDB_NATIVE_NATIVETYPEUDT_H
  77.