summaryrefslogtreecommitdiff
path: root/include/llvm/Value.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-07-15 02:54:36 +0000
committerChris Lattner <sabre@nondot.org>2004-07-15 02:54:36 +0000
commit80d94b88e1cdcffba477864f4d26ae80c2877ab7 (patch)
tree78330ca81ff395666b3f4b4f37ff1993ba032978 /include/llvm/Value.h
parented6c073097ca83fe55b6eb9d1014e41f58c5ee34 (diff)
downloadllvm-80d94b88e1cdcffba477864f4d26ae80c2877ab7.tar.gz
llvm-80d94b88e1cdcffba477864f4d26ae80c2877ab7.tar.bz2
llvm-80d94b88e1cdcffba477864f4d26ae80c2877ab7.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14849 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Value.h')
-rw-r--r--include/llvm/Value.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/include/llvm/Value.h b/include/llvm/Value.h
index 7f0d5db5f0..ee5f56b167 100644
--- a/include/llvm/Value.h
+++ b/include/llvm/Value.h
@@ -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;