diff options
| author | Dan Gohman <gohman@apple.com> | 2010-08-20 00:48:10 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2010-08-20 00:48:10 +0000 |
| commit | b87ad69350fecaf9f5ff31935417e267523f5c3e (patch) | |
| tree | 16604b23f2f27b89768fa74e4713cb4b819f107c /llvm/lib/Support/FormattedStream.cpp | |
| parent | 985d9e4ea8879bc173740eaab848a8b50ee626d6 (diff) | |
| download | bcm5719-llvm-b87ad69350fecaf9f5ff31935417e267523f5c3e.tar.gz bcm5719-llvm-b87ad69350fecaf9f5ff31935417e267523f5c3e.zip | |
Introduce a new tool_output_file class, which extends raw_ostream with
functionality that most command-line tools need: ensuring that the
output file gets deleted if the tool is interrupted or encounters an
error.
llvm-svn: 111595
Diffstat (limited to 'llvm/lib/Support/FormattedStream.cpp')
| -rw-r--r-- | llvm/lib/Support/FormattedStream.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Support/FormattedStream.cpp b/llvm/lib/Support/FormattedStream.cpp index c72b5a1751b..77bdfab2207 100644 --- a/llvm/lib/Support/FormattedStream.cpp +++ b/llvm/lib/Support/FormattedStream.cpp @@ -98,3 +98,6 @@ formatted_raw_ostream &llvm::fdbgs() { static formatted_raw_ostream S(dbgs()); return S; } + +/// ~formatted_tool_output_file - Out-of-line destructor. +formatted_tool_output_file::~formatted_tool_output_file() {} |

