summaryrefslogtreecommitdiff
path: root/tools/llvm-mc/llvm-mc.cpp
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/llvm-mc.cpp
parent57bd6431134d2fe7c8e9f8362b18e283d017b947 (diff)
downloadllvm-26a707493903729aab49e02a082a0e481003b760.tar.gz
llvm-26a707493903729aab49e02a082a0e481003b760.tar.bz2
llvm-26a707493903729aab49e02a082a0e481003b760.tar.xz
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/llvm-mc.cpp')
-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 a114ab0c3f..6de6bfb3c8 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 != "-")