llvm.org GIT mirror llvm / 2c78588
"-" should write to stdout, not stderr. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79310 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 11 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
123123 return 1;
124124 }
125125 } else { // Specified stdout
126 // FIXME: errs() is not binary!
127 Out = &errs();
126 // FIXME: outs() is not binary!
127 Out = &outs();
128128 }
129129
130130 Passes.add(createBitcodeWriterPass(*Out));
131131 Passes.run(*M.get());
132132
133 if (Out != &errs())
133 if (Out != &outs())
134134 delete Out;
135135 return 0;
136136 }