mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
missed a file.
llvm-svn: 133270
This commit is contained in:
parent
d59a556c3a
commit
ef05689a18
@ -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…
Reference in New Issue
Block a user