Move FunctionArgument out of iOther.h into Argument.h and rename class to
authorChris Lattner <sabre@nondot.org>
Tue, 9 Apr 2002 19:39:58 +0000 (19:39 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 9 Apr 2002 19:39:58 +0000 (19:39 +0000)
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

index f42d633dbb8c0b6cdc97c6e74818ecc9b1c0c30e..6fb18693fe2a3dd3327dd6f6333257f4bd29caf7 100644 (file)
@@ -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
 //===----------------------------------------------------------------------===//