/// (e.g.) blockaddress forward references.
bool WillMaterializeAllForwardRefs = false;
- /// True if any Metadata block has been materialized.
- bool IsMetadataMaterialized = false;
-
bool StripDebugInfo = false;
/// Functions that need to be matched with subprograms when upgrading old
assert((ModuleLevel || DeferredMetadataInfo.empty()) &&
"Must read all module-level metadata before function-level");
- IsMetadataMaterialized = true;
unsigned NextMetadataNo = MetadataList.size();
if (!ModuleLevel && MetadataList.hasFwdRefs())
return Err;
break;
case bitc::METADATA_BLOCK_ID:
- if (ShouldLazyLoadMetadata && !IsMetadataMaterialized) {
+ if (ShouldLazyLoadMetadata) {
if (Error Err = rememberAndSkipMetadata())
return Err;
break;