Final fix for PR341: eliminate operator<<(ostream, Value*). Clients should
authorChris Lattner <sabre@nondot.org>
Thu, 15 Jul 2004 02:54:36 +0000 (02:54 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 15 Jul 2004 02:54:36 +0000 (02:54 +0000)
now send references to ostreams instead of pointers.  Sending pointers to
ostreams will print their addresses.

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

include/llvm/Type.h
include/llvm/Value.h

index 6cf3c8d04b583026fcca551ad314560af3ca14a4..273cd439c8c83b436059fbfa2fd455943fa3e01c 100644 (file)
@@ -389,7 +389,6 @@ template <> inline bool isa_impl<PointerType, Type>(const Type &Ty) {
   return Ty.getTypeID() == Type::PointerTyID;
 }
 
-std::ostream &operator<<(std::ostream &OS, const Type *T);
 std::ostream &operator<<(std::ostream &OS, const Type &T);
 
 } // End llvm namespace
index 7f0d5db5f07d58d9da7b8b5ee96b091e7428b4d0..ee5f56b167353e6ea848de6909723a83afe623a4 100644 (file)
@@ -139,14 +139,6 @@ private:
   friend class Instruction;
 };
 
-inline std::ostream &operator<<(std::ostream &OS, const Value *V) {
-  if (V == 0)
-    OS << "<null> value!\n";
-  else
-    V->print(OS);
-  return OS;
-}
-
 inline std::ostream &operator<<(std::ostream &OS, const Value &V) {
   V.print(OS);
   return OS;