mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-12-05 12:21:10 +00:00
change the strange MetadataContext::getMDs function to expose less
irrelevant internal implementation details to clients. llvm-svn: 92210
This commit is contained in:
1 parent
1bc810bb89
commit
53bb5e4ae0
5 files changed
+10
-8
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user