mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-16 23:19:37 +00:00
missed a file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133270 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9d61dd9a08
commit
799a58a55e
@ -490,8 +490,8 @@ static void WriteMDNode(const MDNode *N,
|
||||
Record.push_back(0);
|
||||
}
|
||||
}
|
||||
unsigned MDCode = N->isFunctionLocal() ? bitc::METADATA_FN_NODE2 :
|
||||
bitc::METADATA_NODE2;
|
||||
unsigned MDCode = N->isFunctionLocal() ? bitc::METADATA_FN_NODE :
|
||||
bitc::METADATA_NODE;
|
||||
Stream.EmitRecord(MDCode, Record, 0);
|
||||
Record.clear();
|
||||
}
|
||||
@ -554,7 +554,7 @@ static void WriteModuleMetadata(const Module *M,
|
||||
// Write named metadata operands.
|
||||
for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i)
|
||||
Record.push_back(VE.getValueID(NMD->getOperand(i)));
|
||||
Stream.EmitRecord(bitc::METADATA_NAMED_NODE2, Record, 0);
|
||||
Stream.EmitRecord(bitc::METADATA_NAMED_NODE, Record, 0);
|
||||
Record.clear();
|
||||
}
|
||||
|
||||
@ -590,7 +590,7 @@ static void WriteMetadataAttachment(const Function &F,
|
||||
SmallVector<uint64_t, 64> Record;
|
||||
|
||||
// Write metadata attachments
|
||||
// METADATA_ATTACHMENT2 - [m x [value, [n x [id, mdnode]]]
|
||||
// METADATA_ATTACHMENT - [m x [value, [n x [id, mdnode]]]
|
||||
SmallVector<std::pair<unsigned, MDNode*>, 4> MDs;
|
||||
|
||||
for (Function::const_iterator BB = F.begin(), E = F.end(); BB != E; ++BB)
|
||||
@ -608,7 +608,7 @@ static void WriteMetadataAttachment(const Function &F,
|
||||
Record.push_back(MDs[i].first);
|
||||
Record.push_back(VE.getValueID(MDs[i].second));
|
||||
}
|
||||
Stream.EmitRecord(bitc::METADATA_ATTACHMENT2, Record, 0);
|
||||
Stream.EmitRecord(bitc::METADATA_ATTACHMENT, Record, 0);
|
||||
Record.clear();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user