Give MachineMemOperand an operator<<, factoring out code from
authorDan Gohman <gohman@apple.com>
Wed, 23 Sep 2009 01:33:16 +0000 (01:33 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 23 Sep 2009 01:33:16 +0000 (01:33 +0000)
commitcd26ec5f3c089b3b24f80ff200e94e681eb9e1ee
tree62e9a6dbafa4d84a1045809ed86ea3c1396ccb69
parent00133a7d52f32ab9c9ac53e964a5cc68fc626b4d
Give MachineMemOperand an operator<<, factoring out code from
two different places for printing MachineMemOperands.

Drop the virtual from Value::dump and instead give Value a
protected virtual hook that can be overridden by subclasses
to implement custom printing. This lets printing be more
consistent, and simplifies printing of PseudoSourceValue
values.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82599 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineMemOperand.h
include/llvm/CodeGen/PseudoSourceValue.h
include/llvm/Value.h
lib/CodeGen/MachineInstr.cpp
lib/CodeGen/PseudoSourceValue.cpp
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
lib/VMCore/AsmWriter.cpp