Mercurial > projects > dang
changeset 137:efbf51d85f4d
No reason to explicitly add structs as llvm types
If they are referenced anywhere they are already added
author | Anders Halager <halager@gmail.com> |
---|---|
date | Fri, 18 Jul 2008 13:10:53 +0200 |
parents | 2be29b296081 |
children | b61de188cd0d |
files | gen/CodeGen.d |
diffstat | 1 files changed, 2 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/gen/CodeGen.d Fri Jul 11 21:47:57 2008 +0200 +++ b/gen/CodeGen.d Fri Jul 18 13:10:53 2008 +0200 @@ -53,7 +53,7 @@ { b = new Builder; ZeroIndex = ConstantInt.GetU(Type.Int32, 0); - + table = new SimpleSymbolTable(); createBasicTypes(); @@ -220,12 +220,6 @@ g.initializer = ConstantInt.GetS(t, 0); table[varDecl.identifier.get] = g; break; - - case DeclType.StructDecl: - auto structDecl = cast(StructDecl)decl; - llvm(structDecl.type); - //m.addTypeName(structDecl.identifier.get, llvm(structDecl.type)); - break; default: break; @@ -256,7 +250,7 @@ case DeclType.FuncDecl: genRootDecl(decl); break; - + default: } }