mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 02:43:14 +01:00
28 lines
427 B
C++
28 lines
427 B
C++
#ifndef LLVMDC_IR_IRTYPE_H
|
|
#define LLVMDC_IR_IRTYPE_H
|
|
|
|
#include <set>
|
|
|
|
namespace llvm {
|
|
class PATypeHolder;
|
|
}
|
|
|
|
struct IrType
|
|
{
|
|
static std::set<IrType*> list;
|
|
static void resetAll();
|
|
|
|
// overload all of these to make sure
|
|
// the static list is up to date
|
|
IrType();
|
|
IrType(const IrType& s);
|
|
~IrType();
|
|
|
|
void reset();
|
|
|
|
llvm::PATypeHolder* type;
|
|
llvm::PATypeHolder* vtblType;
|
|
};
|
|
|
|
#endif
|