summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit174f57668feb363c63f87c392e34bac01856cd15 (patch)
treec2aaf8ca6aab35f99def3187cd7c3bf1aad94da0 /llvm/tools/llvm-mc/llvm-mc.cpp
parent91ad65e8b7752755cee624ba45c186ba0146b9f5 (diff)
downloadbcm5719-llvm-174f57668feb363c63f87c392e34bac01856cd15.tar.gz
bcm5719-llvm-174f57668feb363c63f87c392e34bac01856cd15.zip
Avoid calling outs() and fouts() when the stream isn't really needed.
llvm-svn: 104873
Diffstat (limited to 'llvm/tools/llvm-mc/llvm-mc.cpp')
-rw-r--r--llvm/tools/llvm-mc/llvm-mc.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/tools/llvm-mc/llvm-mc.cpp b/llvm/tools/llvm-mc/llvm-mc.cpp
index a114ab0c3f3..6de6bfb3c8a 100644
--- a/llvm/tools/llvm-mc/llvm-mc.cpp
+++ b/llvm/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 != "-")
OpenPOWER on IntegriCloud