[llvm-commits] CVS: llvm/include/llvm/Value.h

Chris Lattner lattner at cs.uiuc.edu
Tue Sep 10 10:27:01 PDT 2002


Changes in directory llvm/include/llvm:

Value.h updated: 1.35 -> 1.36

---
Log message:

Eliminate setType method
Now the only way to set the type of a value is in the ctor for an object


---
Diffs of the changes:

Index: llvm/include/llvm/Value.h
diff -u llvm/include/llvm/Value.h:1.35 llvm/include/llvm/Value.h:1.36
--- llvm/include/llvm/Value.h:1.35	Sun Aug 25 17:54:55 2002
+++ llvm/include/llvm/Value.h	Tue Sep 10 10:26:27 2002
@@ -55,8 +55,6 @@
 
   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();





More information about the llvm-commits mailing list