summaryrefslogtreecommitdiff
path: root/include/llvm/Analysis/Dominators.h
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-01-09 02:29:41 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-01-09 02:29:41 +0000
commit560e3955c3c4fe0a3ae88fd91a1b7780b8fe7810 (patch)
tree77aed3e451050c08fe443b73e42ccac2fc13d366 /include/llvm/Analysis/Dominators.h
parent58691befda948d2a69f93e91d4aeedc0e7c38501 (diff)
downloadllvm-560e3955c3c4fe0a3ae88fd91a1b7780b8fe7810.tar.gz
llvm-560e3955c3c4fe0a3ae88fd91a1b7780b8fe7810.tar.bz2
llvm-560e3955c3c4fe0a3ae88fd91a1b7780b8fe7810.tar.xz
Put the functionality for printing a value to a raw_ostream as an
operand into the Value interface just like the core print method is. That gives a more conistent organization to the IR printing interfaces -- they are all attached to the IR objects themselves. Also, update all the users. This removes the 'Writer.h' header which contained only a single function declaration. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198836 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/Dominators.h')
-rw-r--r--include/llvm/Analysis/Dominators.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Analysis/Dominators.h b/include/llvm/Analysis/Dominators.h
index 896664c1c1..2d8009d59f 100644
--- a/include/llvm/Analysis/Dominators.h
+++ b/include/llvm/Analysis/Dominators.h
@@ -155,7 +155,7 @@ template<class NodeT>
inline raw_ostream &operator<<(raw_ostream &o,
const DomTreeNodeBase<NodeT> *Node) {
if (Node->getBlock())
- WriteAsOperand(o, Node->getBlock(), false);
+ Node->getBlock()->printAsOperand(o, false);
else
o << " <<exit node>>";