diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-12-28 08:14:54 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-12-28 08:14:54 +0000 |
| commit | bcb18538c26fd6fef942d9da8156b30febae5d7e (patch) | |
| tree | 37a897c8205102647e0bee06c8b26d2706dc723d /lib/VMCore/Metadata.cpp | |
| parent | 57109697282c6dffd04e2e275606352914217114 (diff) | |
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
Diffstat (limited to 'lib/VMCore/Metadata.cpp')
| -rw-r--r-- | lib/VMCore/Metadata.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/VMCore/Metadata.cpp b/lib/VMCore/Metadata.cpp index 26b5294ac3..08433a1763 100644 --- a/lib/VMCore/Metadata.cpp +++ b/lib/VMCore/Metadata.cpp @@ -322,7 +322,8 @@ public: MDNode *getMD(unsigned Kind, const Instruction *Inst); /// getMDs - Get the metadata attached to an Instruction. - void getMDs(const Instruction *Inst, SmallVectorImpl<MDPairTy> &MDs) const; + void getMDs(const Instruction *Inst, + SmallVectorImpl<std::pair<unsigned, MDNode*> > &MDs) const; /// addMD - Attach the metadata of given kind to an Instruction. void addMD(unsigned Kind, MDNode *Node, Instruction *Inst); @@ -447,7 +448,8 @@ MDNode *MetadataContextImpl::getMD(unsigned MDKind, const Instruction *Inst) { /// getMDs - Get the metadata attached to an Instruction. void MetadataContextImpl:: -getMDs(const Instruction *Inst, SmallVectorImpl<MDPairTy> &MDs) const { +getMDs(const Instruction *Inst, + SmallVectorImpl<std::pair<unsigned, MDNode*> > &MDs) const { MDStoreTy::const_iterator I = MetadataStore.find(Inst); if (I == MetadataStore.end()) return; @@ -542,7 +544,7 @@ MDNode *MetadataContext::getMD(unsigned Kind, const Instruction *Inst) { /// getMDs - Get the metadata attached to an Instruction. void MetadataContext:: getMDs(const Instruction *Inst, - SmallVectorImpl<std::pair<unsigned, TrackingVH<MDNode> > > &MDs) const { + SmallVectorImpl<std::pair<unsigned, MDNode*> > &MDs) const { return pImpl->getMDs(Inst, MDs); } |
