mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-13 11:23:14 +01:00
Fixed function literals in static initializers. Changed alignment of delegates from 2*PTRSIZE to just PTRSIZE. Changed errors to go to stderr instead of stdout. Fairly major rewriting of struct/union/class handling, STILL A BIT BUGGY !!!
27 lines
387 B
C++
27 lines
387 B
C++
#ifndef LDC_IR_IRTYPE_H
|
|
#define LDC_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;
|
|
};
|
|
|
|
#endif
|