From d48cdbf0c3ee31bcac2d8304da2ee5dc16c35056 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Thu, 9 Jan 2014 02:29:41 +0000 Subject: 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. llvm-svn: 198836 --- llvm/lib/Analysis/DominanceFrontier.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'llvm/lib/Analysis/DominanceFrontier.cpp') diff --git a/llvm/lib/Analysis/DominanceFrontier.cpp b/llvm/lib/Analysis/DominanceFrontier.cpp index bd94641224d..74cd15815f9 100644 --- a/llvm/lib/Analysis/DominanceFrontier.cpp +++ b/llvm/lib/Analysis/DominanceFrontier.cpp @@ -9,7 +9,6 @@ #include "llvm/Analysis/DominanceFrontier.h" #include "llvm/ADT/SmallPtrSet.h" -#include "llvm/IR/Writer.h" #include "llvm/Support/Debug.h" #include "llvm/Support/raw_ostream.h" using namespace llvm; @@ -114,7 +113,7 @@ void DominanceFrontierBase::print(raw_ostream &OS, const Module* ) const { for (const_iterator I = begin(), E = end(); I != E; ++I) { OS << " DomFrontier for BB "; if (I->first) - WriteAsOperand(OS, I->first, false); + I->first->printAsOperand(OS, false); else OS << " <>"; OS << " is:\t"; @@ -125,7 +124,7 @@ void DominanceFrontierBase::print(raw_ostream &OS, const Module* ) const { I != E; ++I) { OS << ' '; if (*I) - WriteAsOperand(OS, *I, false); + (*I)->printAsOperand(OS, false); else OS << "<>"; } -- cgit v1.2.3