Remove unused method
authorChris Lattner <sabre@nondot.org>
Fri, 9 Jul 2004 16:48:13 +0000 (16:48 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 9 Jul 2004 16:48:13 +0000 (16:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14726 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Type.h
lib/VMCore/Type.cpp

index 39b73ce81aaa7fc80a1235cb3f5707e4f06f9835..a78c746fa1880d079c006025ff6418431a597e79 100644 (file)
@@ -126,11 +126,6 @@ public:
   /// @brief Debugging support: print to stderr
   virtual void dump() const;
 
-  /// setName - Associate the name with this type in the symbol table, but don't
-  /// set the local name to be equal specified name.
-  ///
-  virtual void setName(const std::string &Name, SymbolTable *ST = 0);
-
   //===--------------------------------------------------------------------===//
   // Property accessors for dealing with types... Some of these virtual methods
   // are defined in private classes defined in Type.cpp for primitive types.
index fd2a1cccc638f990a463d33dd102eb523b109a11..32b783b0d134ece709108ce92513a62d43245e7f 100644 (file)
@@ -49,11 +49,6 @@ Type::Type( const std::string& name, TypeID id )
   Abstract = false;
 }
 
-void Type::setName(const std::string &Name, SymbolTable *ST) {
-  assert(ST && "Type::setName - Must provide symbol table argument!");
-  if (!Name.empty()) ST->insert(Name, this);
-}
-
 const Type *Type::getPrimitiveType(TypeID IDNumber) {
   switch (IDNumber) {
   case VoidTyID  : return VoidTy;