Allow vararg method types with 0 fixed types
[oota-llvm.git] / lib / Analysis / Writer.cpp
index 9080dc614414f8337928d052b3802b11532292fb..6fce54a8288328efd0eaf8d9895f5de65e5d6f38 100644 (file)
@@ -6,11 +6,15 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Analysis/Writer.h"
-#include "llvm/Analysis/Interval.h"
+#include "llvm/Analysis/IntervalPartition.h"
 #include "llvm/Analysis/Dominators.h"
 #include <iterator>
 #include <algorithm>
 
+//===----------------------------------------------------------------------===//
+//  Interval Printing Routines
+//===----------------------------------------------------------------------===//
+
 void cfg::WriteToOutput(const Interval *I, ostream &o) {
   o << "-------------------------------------------------------------\n"
        << "Interval Contents:\n";
@@ -28,6 +32,16 @@ void cfg::WriteToOutput(const Interval *I, ostream &o) {
        ostream_iterator<BasicBlock*>(o, "\n"));
 }
 
+void cfg::WriteToOutput(const IntervalPartition &IP, ostream &o) {
+  copy(IP.begin(), IP.end(), ostream_iterator<const Interval *>(o, "\n"));
+}
+
+
+
+//===----------------------------------------------------------------------===//
+//  Dominator Printing Routines
+//===----------------------------------------------------------------------===//
+
 ostream &operator<<(ostream &o, const set<const BasicBlock*> &BBs) {
   copy(BBs.begin(), BBs.end(), ostream_iterator<const BasicBlock*>(o, "\n"));
   return o;