| commit | 174f57668feb363c63f87c392e34bac01856cd15 | [log] [tgz] |
|---|---|---|
| author | Dan Gohman <gohman@apple.com> | Thu May 27 19:47:36 2010 +0000 |
| committer | Dan Gohman <gohman@apple.com> | Thu May 27 19:47:36 2010 +0000 |
| tree | c2aaf8ca6aab35f99def3187cd7c3bf1aad94da0 | |
| parent | 91ad65e8b7752755cee624ba45c186ba0146b9f5 [diff] [blame] |
Avoid calling outs() and fouts() when the stream isn't really needed. llvm-svn: 104873
diff --git a/llvm/tools/llvm-mc/llvm-mc.cpp b/llvm/tools/llvm-mc/llvm-mc.cpp index a114ab0..6de6bfb 100644 --- a/llvm/tools/llvm-mc/llvm-mc.cpp +++ b/llvm/tools/llvm-mc/llvm-mc.cpp
@@ -323,8 +323,7 @@ Parser.setTargetParser(*TAP.get()); int Res = Parser.Run(NoInitialTextSection); - if (Out != &fouts()) - delete Out; + delete Out; // Delete output on errors. if (Res && OutputFilename != "-")