change the strange MetadataContext::getMDs function to expose less

irrelevant internal implementation details to clients.

llvm-svn: 92210
This commit is contained in:
Chris Lattner
2009-12-28 08:14:54 +00:00
parent 1bc810bb89
commit 53bb5e4ae0
5 changed files with 10 additions and 8 deletions

View File

@@ -562,7 +562,7 @@ static void WriteMetadataAttachment(const Function &F,
// Write metadata attachments
// METADATA_ATTACHMENT - [m x [value, [n x [id, mdnode]]]
MetadataContext &TheMetadata = F.getContext().getMetadata();
typedef SmallVector<std::pair<unsigned, TrackingVH<MDNode> >, 2> MDMapTy;
typedef SmallVector<std::pair<unsigned, MDNode*>, 2> MDMapTy;
MDMapTy MDs;
for (Function::const_iterator BB = F.begin(), E = F.end(); BB != E; ++BB)
for (BasicBlock::const_iterator I = BB->begin(), E = BB->end();