From: Dan Gohman Date: Wed, 21 Jul 2010 17:53:53 +0000 (+0000) Subject: Tidy. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=1ec7f5feb30e5cd63772e0c97d51cae00b0af7c5;p=oota-llvm.git Tidy. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109020 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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;