forked from OSchip/llvm-project
Final fix for PR341: eliminate operator<<(ostream, Value*). Clients should
now send references to ostreams instead of pointers. Sending pointers to ostreams will print their addresses. llvm-svn: 14849
This commit is contained in:
parent
5c4de70691
commit
29850c5d62
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue