add an insertion operator.
authorChris Lattner <sabre@nondot.org>
Sun, 14 Feb 2010 21:10:33 +0000 (21:10 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 14 Feb 2010 21:10:33 +0000 (21:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96187 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/CodeGenDAGPatterns.h

index c51232a4c3fba207549bd4c2bd209bfea8cb284f..26a962aafcfb1abe571126c90b841b552eda5d4c 100644 (file)
@@ -298,6 +298,11 @@ public:   // Higher level manipulation routines.
   bool canPatternMatch(std::string &Reason, const CodeGenDAGPatterns &CDP);
 };
 
+inline raw_ostream &operator<<(raw_ostream &OS, const TreePatternNode &TPN) {
+  TPN.print(OS);
+  return OS;
+}
+  
 
 /// TreePattern - Represent a pattern, used for instructions, pattern
 /// fragments, etc.