diff options
author | Dan Gohman <gohman@apple.com> | 2010-08-20 01:07:01 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-08-20 01:07:01 +0000 |
commit | 268b0f4781a47645c2738e08cfb2da4ae5e4599f (patch) | |
tree | aa49a2a339561ccb9c94ee959dc96cd39f4e437b /llvm/tools/llvm-mc/Disassembler.h | |
parent | 796b5122d936a798bbef4c7aae558aca7400a152 (diff) | |
download | bcm5719-llvm-268b0f4781a47645c2738e08cfb2da4ae5e4599f.tar.gz bcm5719-llvm-268b0f4781a47645c2738e08cfb2da4ae5e4599f.zip |
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.
llvm-svn: 111603
Diffstat (limited to 'llvm/tools/llvm-mc/Disassembler.h')
-rw-r--r-- | llvm/tools/llvm-mc/Disassembler.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/tools/llvm-mc/Disassembler.h b/llvm/tools/llvm-mc/Disassembler.h index 3da23965bdb..b56f2e95455 100644 --- a/llvm/tools/llvm-mc/Disassembler.h +++ b/llvm/tools/llvm-mc/Disassembler.h @@ -21,15 +21,18 @@ namespace llvm { class Target; class MemoryBuffer; +class raw_ostream; class Disassembler { public: static int disassemble(const Target &target, const std::string &tripleString, - MemoryBuffer &buffer); + MemoryBuffer &buffer, + raw_ostream &Out); static int disassembleEnhanced(const std::string &tripleString, - MemoryBuffer &buffer); + MemoryBuffer &buffer, + raw_ostream &Out); }; } // namespace llvm |