X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FCodeGen%2FSchedGraphCommon.h;h=514c464dff362e3bd7e0aaddca11cbc5016e4d45;hb=4b84086e89d86fb16f562166d9fea8df37db6be7;hp=4f6e2ad32fc819eac117a595f67785cd7078fa5e;hpb=00876a2808f1a8061f7e0852c7949fc5074ecb04;p=oota-llvm.git diff --git a/include/llvm/CodeGen/SchedGraphCommon.h b/include/llvm/CodeGen/SchedGraphCommon.h index 4f6e2ad32fc..514c464dff3 100644 --- a/include/llvm/CodeGen/SchedGraphCommon.h +++ b/include/llvm/CodeGen/SchedGraphCommon.h @@ -2,8 +2,8 @@ // // The LLVM Compiler Infrastructure // -// This file was developed by the LLVM research group and is distributed under -// the University of Illinois Open Source License. See LICENSE.TXT for details. +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // @@ -16,7 +16,8 @@ #define LLVM_CODEGEN_SCHEDGRAPHCOMMON_H #include "llvm/Value.h" -#include "llvm/ADT/iterator" +#include "llvm/ADT/iterator.h" +#include "llvm/Support/Streams.h" #include namespace llvm { @@ -70,6 +71,7 @@ public: // Debugging support virtual void print(std::ostream &os) const = 0; + void print(std::ostream *os) const { if (os) print(*os); } protected: friend class SchedGraphCommon; @@ -98,9 +100,6 @@ inline std::ostream &operator<<(std::ostream &os, return os; } - - - // // SchedGraphEdge - Edge class to represent dependencies // @@ -183,6 +182,7 @@ public: public: // Debugging support void print(std::ostream &os) const; + void print(std::ostream *os) const { if (os) print(*os); } void dump(int indent=0) const; private: