]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/include/llvm/DebugInfo/PDB/Native/NativeTypeTypedef.h
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
[FreeBSD/FreeBSD.git] / contrib / llvm / include / llvm / DebugInfo / PDB / Native / NativeTypeTypedef.h
1 //===- NativeTypeTypedef.h - info about typedef ------------------*- C++-*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef LLVM_DEBUGINFO_PDB_NATIVE_NATIVETYPETYPEDEF_H
11 #define LLVM_DEBUGINFO_PDB_NATIVE_NATIVETYPETYPEDEF_H
12
13 #include "llvm/DebugInfo/CodeView/CodeView.h"
14 #include "llvm/DebugInfo/CodeView/SymbolRecord.h"
15 #include "llvm/DebugInfo/PDB/Native/NativeRawSymbol.h"
16 #include "llvm/DebugInfo/PDB/Native/NativeSession.h"
17
18 namespace llvm {
19 namespace pdb {
20
21 class NativeTypeTypedef : public NativeRawSymbol {
22 public:
23   // Create a pointer record for a non-simple type.
24   NativeTypeTypedef(NativeSession &Session, SymIndexId Id,
25                     codeview::UDTSym Typedef);
26
27   ~NativeTypeTypedef() override;
28
29   void dump(raw_ostream &OS, int Indent, PdbSymbolIdField ShowIdFields,
30             PdbSymbolIdField RecurseIdFields) const override;
31
32   std::string getName() const override;
33   SymIndexId getTypeId() const override;
34
35 protected:
36   codeview::UDTSym Record;
37 };
38
39 } // namespace pdb
40 } // namespace llvm
41
42 #endif // LLVM_DEBUGINFO_PDB_NATIVE_NATIVETYPEPOINTER_H