Introduce a new tool_output_file class, which extends raw_ostream with
authorDan Gohman <gohman@apple.com>
Fri, 20 Aug 2010 00:48:10 +0000 (00:48 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 20 Aug 2010 00:48:10 +0000 (00:48 +0000)
commitaf0636f4d63e6ff2fd066d4594d8666459d1930d
treed32a8901c1ae44c37ab3055ec6b0db0759892c43
parentf762fbe4fa421c91e20044ee009ddb57e25dd135
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
include/llvm/Support/FormattedStream.h
include/llvm/Support/raw_ostream.h
lib/Support/FormattedStream.cpp
lib/Support/raw_ostream.cpp