forked from ldc-developers/ldc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathirtypestruct.h
35 lines (27 loc) · 827 Bytes
/
irtypestruct.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//===-- ir/irtypestruct.h - IrType for structs and unions -------*- C++ -*-===//
//
// LDC – the LLVM D compiler
//
// This file is distributed under the BSD-style LDC license. See the LICENSE
// file for details.
//
//===----------------------------------------------------------------------===//
#pragma once
#include "ir/irtypeaggr.h"
class StructDeclaration;
class TypeStruct;
/// IrType for struct/union types.
class IrTypeStruct : public IrTypeAggr {
public:
///
static IrTypeStruct *get(StructDeclaration *sd);
///
IrTypeStruct *isStruct() override { return this; }
protected:
///
explicit IrTypeStruct(StructDeclaration *sd);
/// StructDeclaration this type represents.
StructDeclaration *sd = nullptr;
/// DMD TypeStruct of this type.
TypeStruct *ts = nullptr;
};