Mercurial > projects > ldc
diff gen/functions.cpp @ 137:ce7b81fb957f trunk
[svn r141] fixed more problems with classinfo
moved more IR state out of the AST classes
author | lindquist |
---|---|
date | Fri, 18 Jan 2008 16:42:16 +0100 |
parents | 0e28624814e8 |
children | 0ab29b838084 |
line wrap: on
line diff
--- a/gen/functions.cpp Thu Jan 17 03:15:12 2008 +0100 +++ b/gen/functions.cpp Fri Jan 18 16:42:16 2008 +0100 @@ -74,10 +74,10 @@ ClassDeclaration* ti = Type::typeinfo; ti->toObjFile(); DtoForceConstInitDsymbol(ti); - assert(ti->llvmConstInit); + assert(ti->irStruct->constInit); std::vector<const llvm::Type*> types; types.push_back(DtoSize_t()); - types.push_back(getPtrToType(getPtrToType(ti->llvmConstInit->getType()))); + types.push_back(getPtrToType(getPtrToType(ti->irStruct->constInit->getType()))); const llvm::Type* t1 = llvm::StructType::get(types); paramvec.push_back(getPtrToType(t1)); paramvec.push_back(getPtrToType(llvm::Type::Int8Ty));