aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-10-22 18:55:16 +0000
committerDevang Patel <dpatel@apple.com>2009-10-22 18:55:16 +0000
commitf61b2371c8ec6e0ff2da8f2bd2a606ba755bb2fe (patch)
tree4e70cd3cb36311326f54ad5a9d293bfc33590a89 /include/llvm
parentb5681b22937440dcb8007f4b125f3325d6341fe0 (diff)
downloadexternal_llvm-f61b2371c8ec6e0ff2da8f2bd2a606ba755bb2fe.zip
external_llvm-f61b2371c8ec6e0ff2da8f2bd2a606ba755bb2fe.tar.gz
external_llvm-f61b2371c8ec6e0ff2da8f2bd2a606ba755bb2fe.tar.bz2
Fix getMDs() interface such that it does not expose implementation details.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84885 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Metadata.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Metadata.h b/include/llvm/Metadata.h
index 63b9e5a..d16b7dc 100644
--- a/include/llvm/Metadata.h
+++ b/include/llvm/Metadata.h
@@ -254,7 +254,7 @@ public:
MDNode *getMD(unsigned Kind, const Instruction *Inst);
/// getMDs - Get the metadata attached to an Instruction.
- const MDMapTy *getMDs(const Instruction *Inst);
+ void getMDs(const Instruction *Inst, SmallVectorImpl<MDPairTy> &MDs) const;
/// addMD - Attach the metadata of given kind to an Instruction.
void addMD(unsigned Kind, MDNode *Node, Instruction *Inst);