comparison 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
comparison
equal deleted inserted replaced
283:9bb48fb57a7d 284:70c370e97944
1883 DValue* NewExp::toElem(IRState* p) 1883 DValue* NewExp::toElem(IRState* p)
1884 { 1884 {
1885 Logger::print("NewExp::toElem: %s | %s\n", toChars(), type->toChars()); 1885 Logger::print("NewExp::toElem: %s | %s\n", toChars(), type->toChars());
1886 LOG_SCOPE; 1886 LOG_SCOPE;
1887 1887
1888 assert(!newargs && "arguments to new not yet supported");
1889 assert(newtype); 1888 assert(newtype);
1890 assert(!allocator && "custom allocators not yet supported");
1891
1892 Type* ntype = DtoDType(newtype); 1889 Type* ntype = DtoDType(newtype);
1893 1890
1894 // new class 1891 // new class
1895 if (ntype->ty == Tclass) { 1892 if (ntype->ty == Tclass) {
1896 Logger::println("new class"); 1893 Logger::println("new class");