mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-16 14:26:17 +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:
@@ -88,7 +88,7 @@ ValueEnumerator::ValueEnumerator(const Module *M) {
|
||||
EnumerateType(I->getType());
|
||||
|
||||
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(); I!=E;++I){
|
||||
|
Reference in New Issue
Block a user