[svn r189] moving IR data back into DMD frontend nodes

This commit is contained in:
Christian Kamm
2008-05-06 07:56:03 +02:00
parent f716b18cc1
commit 0fba6312c2
20 changed files with 646 additions and 520 deletions

View File

@@ -21,6 +21,9 @@
#include "mars.h"
#include "arraytypes.h"
// llvm
#include "../ir/irsymbol.h"
struct Identifier;
struct Scope;
struct DsymbolTable;
@@ -76,6 +79,7 @@ typedef union tree_node TYPE;
struct TYPE;
#endif
// llvm
#if IN_LLVM
namespace llvm
{
@@ -220,6 +224,8 @@ struct Dsymbol : Object
int llvmInternal;
char* llvmInternal1;
char* llvmInternal2;
IrDsymbol ir;
};
// Dsymbol that generates a scope

View File

@@ -21,6 +21,9 @@
#include "arraytypes.h"
#include "expression.h"
// llvm
#include "../ir/irtype.h"
struct Scope;
struct Identifier;
struct Expression;
@@ -248,6 +251,9 @@ struct Type : Object
// For eliminating dynamic_cast
virtual TypeBasic *isTypeBasic();
// llvmdc
IrType ir;
};
struct TypeBasic : Type