Use the new tool_output_file in several tools. This fixes a variety
authorDan Gohman <gohman@apple.com>
Fri, 20 Aug 2010 01:07:01 +0000 (01:07 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 20 Aug 2010 01:07:01 +0000 (01:07 +0000)
commitd5826a33a5a7c298a8934541d11cda042028be3b
tree56249c802243407a71acb23ba3bcf59eb0d58b2b
parent52fdaeda759b2ef3b9048ab8651b024f864b3858
Use the new tool_output_file in several tools. This fixes a variety
of problems with output files being left behind or output streams
being left unclosed. Fix llvm-mc to respect the -o option in all
modes, rather than hardcoding outs() in some cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111603 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llc/llc.cpp
tools/llvm-as/llvm-as.cpp
tools/llvm-dis/llvm-dis.cpp
tools/llvm-mc/Disassembler.cpp
tools/llvm-mc/Disassembler.h
tools/llvm-mc/llvm-mc.cpp
tools/opt/opt.cpp