mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-06 02:45:25 +03:00
Update for metadata changes in LLVM trunk.
This commit is contained in:
parent
041a8c4bd3
commit
49a2924823
5 changed files with 38 additions and 10 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue