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(); }