Mercurial > projects > ldc
comparison ir/irclass.cpp @ 1453:f35a9a77d256
More tweaks.
author | Robert Clipsham <robert@octarineparrot.com> |
---|---|
date | Mon, 01 Jun 2009 18:58:21 +0100 |
parents | 638d16625da2 |
children | ed70675862c8 |
comparison
equal
deleted
inserted
replaced
1452:638d16625da2 | 1453:f35a9a77d256 |
---|---|
176 } | 176 } |
177 | 177 |
178 // build the constant struct | 178 // build the constant struct |
179 constVtbl = llvm::ConstantStruct::get(constants, false); | 179 constVtbl = llvm::ConstantStruct::get(constants, false); |
180 | 180 |
181 // sanity check | |
182 #if 0 | 181 #if 0 |
183 IF_LOG Logger::cout() << "constVtbl type: " << *constVtbl->getType() << std::endl; | 182 IF_LOG Logger::cout() << "constVtbl type: " << *constVtbl->getType() << std::endl; |
184 IF_LOG Logger::cout() << "vtbl type: " << *type->irtype->isClass()->getVtbl() << std::endl; | 183 IF_LOG Logger::cout() << "vtbl type: " << *type->irtype->isClass()->getVtbl() << std::endl; |
185 #endif | 184 #endif |
186 | |
187 assert(constVtbl->getType() == type->irtype->isClass()->getVtbl() && | 185 assert(constVtbl->getType() == type->irtype->isClass()->getVtbl() && |
188 "vtbl initializer type mismatch"); | 186 "vtbl initializer type mismatch"); |
189 | 187 |
190 return constVtbl; | 188 return constVtbl; |
191 } | 189 } |