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 | af0636f4d63e6ff2fd066d4594d8666459d1930d (patch) | |
tree | d32a8901c1ae44c37ab3055ec6b0db0759892c43 /lib/Support/FormattedStream.cpp | |
parent | f762fbe4fa421c91e20044ee009ddb57e25dd135 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111595 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/FormattedStream.cpp')
-rw-r--r-- | lib/Support/FormattedStream.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Support/FormattedStream.cpp b/lib/Support/FormattedStream.cpp index c72b5a1751..77bdfab220 100644 --- a/lib/Support/FormattedStream.cpp +++ b/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() {} |