Skip to content

Commit 8a2c803

Browse files
committed
Remove deprecated MDModule bitcode support
1 parent fe4e5b8 commit 8a2c803

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

llvm/lib/Bitcode/Reader/MetadataLoader.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1243,22 +1243,6 @@ Error MetadataLoader::MetadataLoaderImpl::parseOneMetadata(
12431243
if (Tag >= 1u << 16 || Version != 0)
12441244
return error("Invalid record");
12451245

1246-
// Deprecated internal hack to support serializing MDModule.
1247-
// This node has since been deleted.
1248-
// Upgrading this node is not officially supported. This code
1249-
// may be removed in the future.
1250-
if (Tag == dwarf::DW_TAG_module) {
1251-
if (Record.size() != 6)
1252-
return error("Invalid record");
1253-
1254-
MetadataList.assignValue(
1255-
GET_OR_DISTINCT(DIModule, (Context, getMDOrNull(Record[4]),
1256-
getMDString(Record[5]), nullptr, nullptr,
1257-
nullptr)),
1258-
NextMetadataNo++);
1259-
break;
1260-
}
1261-
12621246
auto *Header = getMDString(Record[3]);
12631247
SmallVector<Metadata *, 8> DwarfOps;
12641248
for (unsigned I = 4, E = Record.size(); I != E; ++I)

0 commit comments

Comments
 (0)