mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-31 03:53:14 +01:00
Rename TD_Confirm to TD_TypeInfo.
The old name probably was a reference to the fact that the metadata node is used to _confirm_ that a metadata record found by name really belongs to a given TypeInfo instance, but I found it to be rather non-intuitive.
This commit is contained in:
@@ -328,8 +328,8 @@ void DtoResolveTypeInfo(TypeInfoDeclaration* tid)
|
||||
if (!meta && tid->tinfo->toBasetype()->ty < Terror) {
|
||||
// Construct the fields
|
||||
MDNodeField* mdVals[TD_NumFields];
|
||||
if (TD_Confirm >= 0)
|
||||
mdVals[TD_Confirm] = llvm::cast<MDNodeField>(irg->value);
|
||||
if (TD_TypeInfo >= 0)
|
||||
mdVals[TD_TypeInfo] = llvm::cast<MDNodeField>(irg->value);
|
||||
mdVals[TD_Type] = llvm::UndefValue::get(DtoType(tid->tinfo));
|
||||
// Construct the metadata and insert it into the module.
|
||||
llvm::NamedMDNode* node = gIR->module->getOrInsertNamedMetadata(metaname);
|
||||
|
||||
Reference in New Issue
Block a user