Mercurial > projects > ldc
comparison gen/typinf.cpp @ 163:a8cd9bc1021a trunk
[svn r179] lots and lots of fixes, much more of tango now compiles/works.
author | lindquist |
---|---|
date | Mon, 05 May 2008 07:36:29 +0200 |
parents | 5c17f81fc1c1 |
children | db9890b3fb64 |
comparison
equal
deleted
inserted
replaced
162:1856c62af24b | 163:a8cd9bc1021a |
---|---|
1050 sinits.push_back(llvm::ConstantPointerNull::get(getPtrToType(llvm::Type::Int8Ty))); | 1050 sinits.push_back(llvm::ConstantPointerNull::get(getPtrToType(llvm::Type::Int8Ty))); |
1051 | 1051 |
1052 // get classinfo | 1052 // get classinfo |
1053 assert(tinfo->ty == Tclass); | 1053 assert(tinfo->ty == Tclass); |
1054 TypeClass *tc = (TypeClass *)tinfo; | 1054 TypeClass *tc = (TypeClass *)tinfo; |
1055 DtoForceDeclareDsymbol(tc->sym); | |
1055 assert(gIR->irDsymbol[tc->sym].irStruct->classInfo); | 1056 assert(gIR->irDsymbol[tc->sym].irStruct->classInfo); |
1056 sinits.push_back(gIR->irDsymbol[tc->sym].irStruct->classInfo); | 1057 sinits.push_back(gIR->irDsymbol[tc->sym].irStruct->classInfo); |
1057 | 1058 |
1058 // create the symbol | 1059 // create the symbol |
1059 llvm::Constant* tiInit = llvm::ConstantStruct::get(stype, sinits); | 1060 llvm::Constant* tiInit = llvm::ConstantStruct::get(stype, sinits); |