aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llvm-mc
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-05-27 19:47:36 +0000
committerDan Gohman <gohman@apple.com>2010-05-27 19:47:36 +0000
commit26a707493903729aab49e02a082a0e481003b760 (patch)
tree1648663d429b77cdf81c1da6ca60aa8a235df196 /tools/llvm-mc
parent57bd6431134d2fe7c8e9f8362b18e283d017b947 (diff)
downloadexternal_llvm-26a707493903729aab49e02a082a0e481003b760.zip
external_llvm-26a707493903729aab49e02a082a0e481003b760.tar.gz
external_llvm-26a707493903729aab49e02a082a0e481003b760.tar.bz2
Avoid calling outs() and fouts() when the stream isn't really needed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104873 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-mc')
-rw-r--r--tools/llvm-mc/llvm-mc.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/llvm-mc/llvm-mc.cpp b/tools/llvm-mc/llvm-mc.cpp
index a114ab0..6de6bfb 100644
--- a/tools/llvm-mc/llvm-mc.cpp
+++ b/tools/llvm-mc/llvm-mc.cpp
@@ -323,8 +323,7 @@ static int AssembleInput(const char *ProgName) {
Parser.setTargetParser(*TAP.get());
int Res = Parser.Run(NoInitialTextSection);
- if (Out != &fouts())
- delete Out;
+ delete Out;
// Delete output on errors.
if (Res && OutputFilename != "-")