Subversion Repositories QNX 8.QNX8 LLVM/Clang compiler suite

Rev

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

  1. //===- NativeTypeTypedef.h - info about typedef ------------------*- 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_NATIVETYPETYPEDEF_H
  10. #define LLVM_DEBUGINFO_PDB_NATIVE_NATIVETYPETYPEDEF_H
  11.  
  12. #include "llvm/DebugInfo/CodeView/SymbolRecord.h"
  13. #include "llvm/DebugInfo/PDB/IPDBRawSymbol.h"
  14. #include "llvm/DebugInfo/PDB/Native/NativeRawSymbol.h"
  15. #include "llvm/DebugInfo/PDB/PDBTypes.h"
  16.  
  17. namespace llvm {
  18.  
  19. class raw_ostream;
  20.  
  21. namespace pdb {
  22.  
  23. class NativeSession;
  24.  
  25. class NativeTypeTypedef : public NativeRawSymbol {
  26. public:
  27.   // Create a pointer record for a non-simple type.
  28.   NativeTypeTypedef(NativeSession &Session, SymIndexId Id,
  29.                     codeview::UDTSym Typedef);
  30.  
  31.   ~NativeTypeTypedef() override;
  32.  
  33.   void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields,
  34.             PdbSymbolIdField RecurseIdFields) const override;
  35.  
  36.   std::string getName() const override;
  37.   SymIndexId getTypeId() const override;
  38.  
  39. protected:
  40.   codeview::UDTSym Record;
  41. };
  42.  
  43. } // namespace pdb
  44. } // namespace llvm
  45.  
  46. #endif // LLVM_DEBUGINFO_PDB_NATIVE_NATIVETYPETYPEDEF_H
  47.