mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-28 23:17:10 +00:00
Bitcode: Add OLD_
prefix to metadata node records
I'm about to change these, so move the old ones out of the way. Part of PR21532. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224070 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1115,7 +1115,7 @@ std::error_code BitcodeReader::ParseMetadata() {
|
||||
}
|
||||
break;
|
||||
}
|
||||
case bitc::METADATA_FN_NODE: {
|
||||
case bitc::METADATA_OLD_FN_NODE: {
|
||||
// This is a LocalAsMetadata record, the only type of function-local
|
||||
// metadata.
|
||||
if (Record.size() % 2 == 1)
|
||||
@@ -1142,7 +1142,7 @@ std::error_code BitcodeReader::ParseMetadata() {
|
||||
NextMDValueNo++);
|
||||
break;
|
||||
}
|
||||
case bitc::METADATA_NODE: {
|
||||
case bitc::METADATA_OLD_NODE: {
|
||||
if (Record.size() % 2 == 1)
|
||||
return Error(BitcodeError::InvalidRecord);
|
||||
|
||||
|
Reference in New Issue
Block a user