diff options
author | Chris Lattner <sabre@nondot.org> | 2002-04-09 19:39:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-04-09 19:39:58 +0000 |
commit | 8a9acc9c72e720148fa58cc37a4df63f973233b3 (patch) | |
tree | 58786846130669dba4304a92e6a82e21a7797647 /lib | |
parent | 80dd50b4aaee0ae609d21f8dded9c3af1e801b9e (diff) | |
download | external_llvm-8a9acc9c72e720148fa58cc37a4df63f973233b3.zip external_llvm-8a9acc9c72e720148fa58cc37a4df63f973233b3.tar.gz external_llvm-8a9acc9c72e720148fa58cc37a4df63f973233b3.tar.bz2 |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VMCore/InstrTypes.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/VMCore/InstrTypes.cpp b/lib/VMCore/InstrTypes.cpp index f42d633..6fb1869 100644 --- a/lib/VMCore/InstrTypes.cpp +++ b/lib/VMCore/InstrTypes.cpp @@ -27,21 +27,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 //===----------------------------------------------------------------------===// |