mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
change the strange MetadataContext::getMDs function to expose less
irrelevant internal implementation details to clients. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92210 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -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