From f1da1f5f97b3e0b79381eaf39e827dd723abfb65 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Thu, 30 Jul 2009 23:57:23 +0000 Subject: [PATCH] Add addElement(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77645 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Metadata.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/llvm/Metadata.h b/include/llvm/Metadata.h index c4264495ee5..75269191563 100644 --- a/include/llvm/Metadata.h +++ b/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(); }