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.

llvm-svn: 224070
This commit is contained in:
Duncan P. N. Exon Smith
2014-12-11 22:30:48 +00:00
parent ebb54954a5
commit 005f9f433c
4 changed files with 9 additions and 9 deletions

View File

@@ -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);