summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-12-11 22:30:48 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-12-11 22:30:48 +0000
commit005f9f433c4d2559677152795c30090c4cd9270e (patch)
treef68ee4ac26b20e1c1c661dae14bf8f1434677612 /llvm/lib/Bitcode/Reader
parentebb54954a5247f64cf0f631497952df49f3bbbc2 (diff)
downloadbcm5719-llvm-005f9f433c4d2559677152795c30090c4cd9270e.tar.gz
bcm5719-llvm-005f9f433c4d2559677152795c30090c4cd9270e.zip
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
Diffstat (limited to 'llvm/lib/Bitcode/Reader')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index cc618069361..a92b9c83dfc 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -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);
OpenPOWER on IntegriCloud