forked from OSchip/llvm-project
parent
72989a5758
commit
3aa325766a
|
@ -106,6 +106,7 @@ int main(int argc, char **argv) {
|
||||||
if (DumpAsm) std::cerr << "Here's the assembly:\n" << Composite.get();
|
if (DumpAsm) std::cerr << "Here's the assembly:\n" << Composite.get();
|
||||||
|
|
||||||
std::ostream *Out = &std::cout; // Default to printing to stdout...
|
std::ostream *Out = &std::cout; // Default to printing to stdout...
|
||||||
|
if (OutputFilename != "-") {
|
||||||
if (!Force && std::ifstream(OutputFilename.c_str())) {
|
if (!Force && std::ifstream(OutputFilename.c_str())) {
|
||||||
// If force is not specified, make sure not to overwrite a file!
|
// If force is not specified, make sure not to overwrite a file!
|
||||||
std::cerr << argv[0] << ": error opening '" << OutputFilename
|
std::cerr << argv[0] << ": error opening '" << OutputFilename
|
||||||
|
|
|
@ -106,6 +106,7 @@ int main(int argc, char **argv) {
|
||||||
if (DumpAsm) std::cerr << "Here's the assembly:\n" << Composite.get();
|
if (DumpAsm) std::cerr << "Here's the assembly:\n" << Composite.get();
|
||||||
|
|
||||||
std::ostream *Out = &std::cout; // Default to printing to stdout...
|
std::ostream *Out = &std::cout; // Default to printing to stdout...
|
||||||
|
if (OutputFilename != "-") {
|
||||||
if (!Force && std::ifstream(OutputFilename.c_str())) {
|
if (!Force && std::ifstream(OutputFilename.c_str())) {
|
||||||
// If force is not specified, make sure not to overwrite a file!
|
// If force is not specified, make sure not to overwrite a file!
|
||||||
std::cerr << argv[0] << ": error opening '" << OutputFilename
|
std::cerr << argv[0] << ": error opening '" << OutputFilename
|
||||||
|
|
Loading…
Reference in New Issue