Eliminate setType method
authorChris Lattner <sabre@nondot.org>
Tue, 10 Sep 2002 15:26:27 +0000 (15:26 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 10 Sep 2002 15:26:27 +0000 (15:26 +0000)
Now the only way to set the type of a value is in the ctor for an object

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3646 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Value.h

index 6a39109f32ab10f3f82603629a6c6a4aa0244702..2e0740b09a7a8efab2945e06b34ffe2e4749d3b6 100644 (file)
@@ -55,8 +55,6 @@ private:
 
   void operator=(const Value &);     // Do not implement
   Value(const Value &);              // Do not implement
-protected:
-  inline void setType(const Type *ty) { Ty = ty; }
 public:
   Value(const Type *Ty, ValueTy vty, const std::string &name = "");
   virtual ~Value();