From d8db5e6a97edfda8d845c0a7e50590b50d9c7876 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Thu, 30 Jul 2009 23:57:23 +0000 Subject: [PATCH] Add addElement(). llvm-svn: 77645 --- llvm/include/llvm/Metadata.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/llvm/include/llvm/Metadata.h b/llvm/include/llvm/Metadata.h index c4264495ee55..75269191563d 100644 --- a/llvm/include/llvm/Metadata.h +++ b/llvm/include/llvm/Metadata.h @@ -212,6 +212,11 @@ public: return Node.size(); } + /// addElement - Add metadata element. + void addElement(MetadataBase *M) { + Node.push_back(WeakMetadataVH(M)); + } + bool elem_empty() const { return Node.empty(); }