diff options
author | Chris Lattner <sabre@nondot.org> | 2010-02-14 21:10:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-02-14 21:10:33 +0000 |
commit | 383fed9c7aa3b09195bcc2f5f2635ff8bc7819e3 (patch) | |
tree | 525f2a75a8c90aa77355a759eab206240118b24a | |
parent | 523f6a5848194c135168112751c36884dc704e54 (diff) | |
download | external_llvm-383fed9c7aa3b09195bcc2f5f2635ff8bc7819e3.zip external_llvm-383fed9c7aa3b09195bcc2f5f2635ff8bc7819e3.tar.gz external_llvm-383fed9c7aa3b09195bcc2f5f2635ff8bc7819e3.tar.bz2 |
add an insertion operator.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96187 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | utils/TableGen/CodeGenDAGPatterns.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/TableGen/CodeGenDAGPatterns.h b/utils/TableGen/CodeGenDAGPatterns.h index c51232a..26a962a 100644 --- a/utils/TableGen/CodeGenDAGPatterns.h +++ b/utils/TableGen/CodeGenDAGPatterns.h @@ -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. |