Update for metadata changes in LLVM trunk.

This commit is contained in:
Frits van Bommel 2009-05-11 11:59:22 +02:00
parent 041a8c4bd3
commit 49a2924823
5 changed files with 38 additions and 10 deletions

View file

@ -82,7 +82,7 @@ LLGlobalVariable * IrStruct::getClassInfoSymbol()
bool hasDestructor = (classdecl->dtor != NULL);
bool hasCustomDelete = (classdecl->aggDelete != NULL);
// Construct the fields
LLConstant* mdVals[CD_NumFields];
MDNodeField* mdVals[CD_NumFields];
mdVals[CD_BodyType] = llvm::UndefValue::get(bodyType);
mdVals[CD_Finalize] = LLConstantInt::get(LLType::Int1Ty, hasDestructor);
mdVals[CD_CustomDelete] = LLConstantInt::get(LLType::Int1Ty, hasCustomDelete);