diff gen/toir.cpp @ 284:70c370e97944 trunk

[svn r305] Started support for custom class allocators/deallocators. Allocators with more than one argument still need to be fixed. Removed the LLVM stacktrace code from mars.c. Moved the LLVM based default target detection code from mars.c to llvmhelpers.cpp.
author lindquist
date Sat, 21 Jun 2008 02:48:53 +0200
parents 9bb48fb57a7d
children a3b7c19c866c
line wrap: on
line diff
--- a/gen/toir.cpp	Sat Jun 21 00:54:55 2008 +0200
+++ b/gen/toir.cpp	Sat Jun 21 02:48:53 2008 +0200
@@ -1885,10 +1885,7 @@
     Logger::print("NewExp::toElem: %s | %s\n", toChars(), type->toChars());
     LOG_SCOPE;
 
-    assert(!newargs && "arguments to new not yet supported");
     assert(newtype);
-    assert(!allocator && "custom allocators not yet supported");
-
     Type* ntype = DtoDType(newtype);
 
     // new class