From 328a6ebeae856b4166242331275a870a881c9be9 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 21 Jul 2010 17:53:53 +0000 Subject: [PATCH] Tidy. llvm-svn: 109020 --- lib/VMCore/Metadata.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/VMCore/Metadata.cpp b/lib/VMCore/Metadata.cpp index 023799ceb82..b64bde548d1 100644 --- a/lib/VMCore/Metadata.cpp +++ b/lib/VMCore/Metadata.cpp @@ -330,10 +330,8 @@ void MDNode::replaceOperand(MDNodeOperand *Op, Value *To) { // NamedMDNode implementation. // -namespace llvm { // SymbolTableListTraits specialization for MDSymbolTable. -void ilist_traits -::addNodeToList(NamedMDNode *N) { +void ilist_traits::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::removeNodeFromList(NamedMDNode *N) { MDSymbolTable &ST = Owner->getMDSymbolTable(); ST.remove(N->getName()); } -} static SmallVector &getNMDOps(void *Operands) { return *(SmallVector*)Operands;