mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-01 15:40:55 +03:00
[svn r141] fixed more problems with classinfo
moved more IR state out of the AST classes
This commit is contained in:
parent
5652546986
commit
17247d63e7
18 changed files with 311 additions and 267 deletions
|
@ -74,10 +74,10 @@ const llvm::FunctionType* DtoFunctionType(Type* type, const llvm::Type* thistype
|
|||
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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue