diff options
| author | Bill Wendling <isanbard@gmail.com> | 2006-12-09 01:27:51 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2006-12-09 01:27:51 +0000 |
| commit | c78ae26ff8982040b69e767d5359d0184b87a0a5 (patch) | |
| tree | 4154593aad4cbecdd30731ab247e92420d3935f8 /llvm/docs/CodingStandards.html | |
| parent | 2b52dc1753e212404aa51b27517b329cb50d6e25 (diff) | |
| download | bcm5719-llvm-c78ae26ff8982040b69e767d5359d0184b87a0a5.tar.gz bcm5719-llvm-c78ae26ff8982040b69e767d5359d0184b87a0a5.zip | |
Another example of using the llvm IO streams.
llvm-svn: 32391
Diffstat (limited to 'llvm/docs/CodingStandards.html')
| -rw-r--r-- | llvm/docs/CodingStandards.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/docs/CodingStandards.html b/llvm/docs/CodingStandards.html index 40d08383a83..72ca77535d4 100644 --- a/llvm/docs/CodingStandards.html +++ b/llvm/docs/CodingStandards.html @@ -547,6 +547,13 @@ library. There are two problems with this:</p> <td align="left"><pre>std::stringstream</pre></td> <td align="left"><pre>llvm::StringStream</pre></td> </tr> + <tr> + <td align="left"><pre>void print(std::ostream &Out); +// ... +print(std::cerr);</pre></td> + <td align="left"><pre>void print(std::ostream &Out); +// ... +print(*llvm::cerr.stream());</pre></td> </tbody> </table> |

