Mercurial > projects > ldc
diff dmd/mtype.h @ 100:5071469303d4 trunk
[svn r104] TONS OF FIXES.
Split up declaration, constant initializer gen and definition for globals, structs, classes and functions.
Improved ClassInfo support (not complete), not in vtable yet.
Fixed a bunch of forward reference problems.
Much more. Major commit! :)
author | lindquist |
---|---|
date | Fri, 16 Nov 2007 08:21:47 +0100 |
parents | 70d6113eeb8c |
children | 027b8d8b71ec |
line wrap: on
line diff
--- a/dmd/mtype.h Thu Nov 15 00:24:44 2007 +0100 +++ b/dmd/mtype.h Fri Nov 16 08:21:47 2007 +0100 @@ -21,11 +21,14 @@ #include "arraytypes.h" #include "expression.h" +// LLVMDC namespace llvm { class Value; + class Instruction; class Type; - class Instruction; + class PATypeHolder; + class GlobalVariable; } struct Scope; @@ -250,7 +253,7 @@ virtual type *toCParamtype(); virtual Symbol *toSymbol(); - const llvm::Type* llvmType; + llvm::PATypeHolder* llvmType; // For eliminating dynamic_cast virtual TypeBasic *isTypeBasic(); @@ -540,7 +543,7 @@ type *toCtype(); - llvm::Constant* llvmInit; + llvm::GlobalVariable* llvmInit; }; struct TypeEnum : Type @@ -638,7 +641,7 @@ Symbol *toSymbol(); - llvm::Constant* llvmInit; + llvm::GlobalVariable* llvmInit; }; struct TypeTuple : Type