From 53bb5e4ae0b2b4d54f92a6f6a45dc19636bc2ff2 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 28 Dec 2009 08:14:54 +0000 Subject: change the strange MetadataContext::getMDs function to expose less irrelevant internal implementation details to clients. llvm-svn: 92210 --- llvm/lib/VMCore/Metadata.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'llvm/lib/VMCore/Metadata.cpp') diff --git a/llvm/lib/VMCore/Metadata.cpp b/llvm/lib/VMCore/Metadata.cpp index 26b5294ac36..08433a17638 100644 --- a/llvm/lib/VMCore/Metadata.cpp +++ b/llvm/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 &MDs) const; + void getMDs(const Instruction *Inst, + SmallVectorImpl > &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 &MDs) const { +getMDs(const Instruction *Inst, + SmallVectorImpl > &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 > > &MDs) const { + SmallVectorImpl > &MDs) const { return pImpl->getMDs(Inst, MDs); } -- cgit v1.2.3