mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
Avoid deleting the ostream more than once.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3816 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d3448cd7a6
commit
d14d37614b
@ -106,7 +106,7 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
switch (WriteMode) {
|
switch (WriteMode) {
|
||||||
case llvm: // Output LLVM assembly
|
case llvm: // Output LLVM assembly
|
||||||
Passes.add(new PrintModulePass(Out, Out != &std::cout));
|
Passes.add(new PrintModulePass(Out, false));
|
||||||
break;
|
break;
|
||||||
case c: // Convert LLVM to C
|
case c: // Convert LLVM to C
|
||||||
Passes.add(createWriteToCPass(*Out));
|
Passes.add(createWriteToCPass(*Out));
|
||||||
|
@ -106,7 +106,7 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
switch (WriteMode) {
|
switch (WriteMode) {
|
||||||
case llvm: // Output LLVM assembly
|
case llvm: // Output LLVM assembly
|
||||||
Passes.add(new PrintModulePass(Out, Out != &std::cout));
|
Passes.add(new PrintModulePass(Out, false));
|
||||||
break;
|
break;
|
||||||
case c: // Convert LLVM to C
|
case c: // Convert LLVM to C
|
||||||
Passes.add(createWriteToCPass(*Out));
|
Passes.add(createWriteToCPass(*Out));
|
||||||
|
@ -106,7 +106,7 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
switch (WriteMode) {
|
switch (WriteMode) {
|
||||||
case llvm: // Output LLVM assembly
|
case llvm: // Output LLVM assembly
|
||||||
Passes.add(new PrintModulePass(Out, Out != &std::cout));
|
Passes.add(new PrintModulePass(Out, false));
|
||||||
break;
|
break;
|
||||||
case c: // Convert LLVM to C
|
case c: // Convert LLVM to C
|
||||||
Passes.add(createWriteToCPass(*Out));
|
Passes.add(createWriteToCPass(*Out));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user