Add addElement().

llvm-svn: 77645
This commit is contained in:
Devang Patel 2009-07-30 23:57:23 +00:00
parent bfe393fa0a
commit d8db5e6a97
1 changed files with 5 additions and 0 deletions

View File

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