mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
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
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user