From 8a9acc9c72e720148fa58cc37a4df63f973233b3 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 9 Apr 2002 19:39:58 +0000 Subject: [PATCH] Move FunctionArgument out of iOther.h into Argument.h and rename class to be 'Argument' instead of FunctionArgument. Move implementation to Function.cpp git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2212 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/InstrTypes.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/lib/VMCore/InstrTypes.cpp b/lib/VMCore/InstrTypes.cpp index f42d633dbb8..6fb18693fe2 100644 --- a/lib/VMCore/InstrTypes.cpp +++ b/lib/VMCore/InstrTypes.cpp @@ -26,21 +26,6 @@ TerminatorInst::TerminatorInst(const Type *Ty, Instruction::TermOps iType, } -//===----------------------------------------------------------------------===// -// FunctionArgument Class -//===----------------------------------------------------------------------===// - -// Specialize setName to take care of symbol table majik -void FunctionArgument::setName(const std::string &name, SymbolTable *ST) { - Function *P; - assert((ST == 0 || (!getParent() || ST == getParent()->getSymbolTable())) && - "Invalid symtab argument!"); - if ((P = getParent()) && hasName()) P->getSymbolTable()->remove(this); - Value::setName(name); - if (P && hasName()) P->getSymbolTable()->insert(this); -} - - //===----------------------------------------------------------------------===// // PHINode Class //===----------------------------------------------------------------------===//