Mercurial > projects > ldc
diff gen/todebug.cpp @ 486:a34078905d01
Added pragma(llvmdc, "string") for misc per-module compiler configuration, currently "string" can only be "verbose" which forces -vv for module it appears in.
Reimplemented support for nested functions/class using a new approach.
Added error on taking address of intrinsic.
Fixed problems with the ->syntaxCopy of TypeFunction delegate exp.
Removed DtoDType and replaced all uses with ->toBasetype() instead.
Removed unused inplace stuff.
Fixed a bunch of issues in the runtime unittests, not complete yet.
Added mini tests.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Sun, 10 Aug 2008 08:37:38 +0200 |
parents | 297690b5d4a5 |
children | 1b62222581fb |
line wrap: on
line diff
--- a/gen/todebug.cpp Sat Aug 09 09:03:52 2008 +0200 +++ b/gen/todebug.cpp Sun Aug 10 08:37:38 2008 +0200 @@ -239,7 +239,7 @@ static LLGlobalVariable* dwarfDerivedType(Type* type, llvm::GlobalVariable* compileUnit) { const LLType* T = DtoType(type); - Type* t = DtoDType(type); + Type* t = type->toBasetype(); // defaults LLConstant* name = getNullPtr(getVoidPtrType()); @@ -300,7 +300,7 @@ static LLGlobalVariable* dwarfMemberType(unsigned linnum, Type* type, LLGlobalVariable* compileUnit, LLGlobalVariable* definedCU, const char* c_name, unsigned offset) { const LLType* T = DtoType(type); - Type* t = DtoDType(type); + Type* t = type->toBasetype(); // defaults LLConstant* name; @@ -356,7 +356,7 @@ static LLGlobalVariable* dwarfCompositeType(Type* type, llvm::GlobalVariable* compileUnit) { const LLType* T = DtoType(type); - Type* t = DtoDType(type); + Type* t = type->toBasetype(); // defaults LLConstant* name = getNullPtr(getVoidPtrType());