summaryrefslogtreecommitdiff
path: root/include/llvm/Metadata.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-12-28 20:10:43 +0000
committerChris Lattner <sabre@nondot.org>2009-12-28 20:10:43 +0000
commit7d05c46d601cbb52be605019548c34286c02e3a3 (patch)
tree71f8c23f6c6a275b9674620119278f2bf9d34485 /include/llvm/Metadata.h
parent06ac32cc86ce88b940ffc0493a9bf54c8a720162 (diff)
downloadllvm-7d05c46d601cbb52be605019548c34286c02e3a3.tar.gz
llvm-7d05c46d601cbb52be605019548c34286c02e3a3.tar.bz2
llvm-7d05c46d601cbb52be605019548c34286c02e3a3.tar.xz
rename getHandlerNames to getMDKindNames, simplify its interface
and simplify all the clients that use it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92224 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Metadata.h')
-rw-r--r--include/llvm/Metadata.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Metadata.h b/include/llvm/Metadata.h
index 1ece55935f..10433df7d9 100644
--- a/include/llvm/Metadata.h
+++ b/include/llvm/Metadata.h
@@ -244,9 +244,9 @@ public:
/// the same metadata to In2.
void copyMD(Instruction *In1, Instruction *In2);
- /// getHandlerNames - Populate client supplied smallvector using custom
- /// metadata name and ID.
- void getHandlerNames(SmallVectorImpl<std::pair<unsigned, StringRef> >&) const;
+ /// getMDKindNames - Populate client supplied SmallVector with the name for
+ /// each custom metadata ID. ID #0 is not used, so it is filled in as empty.
+ void getMDKindNames(SmallVectorImpl<StringRef> &) const;
/// ValueIsDeleted - This handler is used to update metadata store
/// when a value is deleted.