Mercurial > projects > ldc
comparison gen/structs.cpp @ 1030:3ead5c40b7d6
Disabled some extensive LLVM value logging with -vv that dramatically increases -vv output length for little value.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Tue, 03 Mar 2009 17:21:35 +0100 |
parents | 8a70b4381369 |
children | dbe4af57b240 |
comparison
equal
deleted
inserted
replaced
1029:4d366a75d95f | 1030:3ead5c40b7d6 |
---|---|
100 DtoForceConstInitDsymbol(si->ad); | 100 DtoForceConstInitDsymbol(si->ad); |
101 | 101 |
102 // get formal type | 102 // get formal type |
103 const llvm::StructType* structtype = isaStruct(ts->ir.type->get()); | 103 const llvm::StructType* structtype = isaStruct(ts->ir.type->get()); |
104 | 104 |
105 #if 0 | |
105 // log it | 106 // log it |
106 if (Logger::enabled()) | 107 if (Logger::enabled()) |
107 Logger::cout() << "llvm struct type: " << *structtype << '\n'; | 108 Logger::cout() << "llvm struct type: " << *structtype << '\n'; |
109 #endif | |
108 | 110 |
109 // sanity check | 111 // sanity check |
110 assert(si->value.dim > 0); | 112 assert(si->value.dim > 0); |
111 assert(si->value.dim == si->vars.dim); | 113 assert(si->value.dim == si->vars.dim); |
112 | 114 |
526 // make this struct current | 528 // make this struct current |
527 gIR->structs.push_back(irstruct); | 529 gIR->structs.push_back(irstruct); |
528 | 530 |
529 // get some info | 531 // get some info |
530 bool ispacked = (ts->alignsize() == 1); | 532 bool ispacked = (ts->alignsize() == 1); |
531 bool isunion = sd->isUnionDeclaration(); | |
532 | 533 |
533 // set irstruct info | 534 // set irstruct info |
534 irstruct->packed = ispacked; | 535 irstruct->packed = ispacked; |
535 | 536 |
536 // methods, fields | 537 // methods, fields |