mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-14 11:53:13 +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:
@@ -495,8 +495,8 @@ Type* Analysis::getTypeFor(Value* typeinfo) const {
|
||||
|
||||
if (node->getNumOperands() != TD_NumFields)
|
||||
return NULL;
|
||||
if (TD_Confirm >= 0 && (!node->getOperand(TD_Confirm) ||
|
||||
node->getOperand(TD_Confirm)->stripPointerCasts() != ti_global))
|
||||
if (TD_TypeInfo >= 0 && (!node->getOperand(TD_TypeInfo) ||
|
||||
node->getOperand(TD_TypeInfo)->stripPointerCasts() != ti_global))
|
||||
return NULL;
|
||||
|
||||
return node->getOperand(TD_Type)->getType();
|
||||
|
||||
Reference in New Issue
Block a user