llvm-svn: 109020
This commit is contained in:
Dan Gohman 2010-07-21 17:53:53 +00:00
parent f26c7a852f
commit 328a6ebeae

View File

@ -330,10 +330,8 @@ void MDNode::replaceOperand(MDNodeOperand *Op, Value *To) {
// NamedMDNode implementation.
//
namespace llvm {
// SymbolTableListTraits specialization for MDSymbolTable.
void ilist_traits<NamedMDNode>
::addNodeToList(NamedMDNode *N) {
void ilist_traits<NamedMDNode>::addNodeToList(NamedMDNode *N) {
assert(N->getParent() == 0 && "Value already in a container!!");
Module *Owner = getListOwner();
N->setParent(Owner);
@ -347,7 +345,6 @@ void ilist_traits<NamedMDNode>::removeNodeFromList(NamedMDNode *N) {
MDSymbolTable &ST = Owner->getMDSymbolTable();
ST.remove(N->getName());
}
}
static SmallVector<WeakVH, 4> &getNMDOps(void *Operands) {
return *(SmallVector<WeakVH, 4>*)Operands;