diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2014-01-09 02:29:41 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2014-01-09 02:29:41 +0000 |
commit | d48cdbf0c3ee31bcac2d8304da2ee5dc16c35056 (patch) | |
tree | dcf560bf8299807196709ba4ce63e3e7d1477f01 /llvm/lib/Analysis/RegionInfo.cpp | |
parent | d9bd4ae77be31aa707e91209a610a7e119362dc0 (diff) | |
download | bcm5719-llvm-d48cdbf0c3ee31bcac2d8304da2ee5dc16c35056.tar.gz bcm5719-llvm-d48cdbf0c3ee31bcac2d8304da2ee5dc16c35056.zip |
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
Diffstat (limited to 'llvm/lib/Analysis/RegionInfo.cpp')
-rw-r--r-- | llvm/lib/Analysis/RegionInfo.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/RegionInfo.cpp b/llvm/lib/Analysis/RegionInfo.cpp index 8470d316f7a..f732ffdde07 100644 --- a/llvm/lib/Analysis/RegionInfo.cpp +++ b/llvm/lib/Analysis/RegionInfo.cpp @@ -15,7 +15,6 @@ #include "llvm/ADT/Statistic.h" #include "llvm/Analysis/LoopInfo.h" #include "llvm/Analysis/RegionIterator.h" -#include "llvm/IR/Writer.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/Debug.h" #include "llvm/Support/ErrorHandling.h" @@ -215,7 +214,7 @@ std::string Region::getNameStr() const { if (getEntry()->getName().empty()) { raw_string_ostream OS(entryName); - WriteAsOperand(OS, getEntry(), false); + getEntry()->printAsOperand(OS, false); } else entryName = getEntry()->getName(); @@ -223,7 +222,7 @@ std::string Region::getNameStr() const { if (getExit()->getName().empty()) { raw_string_ostream OS(exitName); - WriteAsOperand(OS, getExit(), false); + getExit()->printAsOperand(OS, false); } else exitName = getExit()->getName(); } else |