diff options
author | Chris Lattner <sabre@nondot.org> | 2002-01-22 21:07:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-01-22 21:07:24 +0000 |
commit | 0e11e54d209295faa1fea55794545fffd3a8906c (patch) | |
tree | a37dd8fec36ba3199e0ada11d2f7be76368b7fc9 /llvm | |
parent | 044b5d90d8da7e444a0bc488db6a80f41bbf5189 (diff) | |
download | bcm5719-llvm-0e11e54d209295faa1fea55794545fffd3a8906c.tar.gz bcm5719-llvm-0e11e54d209295faa1fea55794545fffd3a8906c.zip |
In an amazing fit of stupidity, I flipped the conditional and didn't test
it right. Sheesh :)
llvm-svn: 1550
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/tools/as/as.cpp | 4 | ||||
-rw-r--r-- | llvm/tools/dis/dis.cpp | 4 | ||||
-rw-r--r-- | llvm/tools/link/link.cpp | 2 | ||||
-rw-r--r-- | llvm/tools/llc/llc.cpp | 6 | ||||
-rw-r--r-- | llvm/tools/llvm-as/as.cpp | 4 | ||||
-rw-r--r-- | llvm/tools/llvm-as/llvm-as.cpp | 4 | ||||
-rw-r--r-- | llvm/tools/llvm-dis/dis.cpp | 4 | ||||
-rw-r--r-- | llvm/tools/llvm-dis/llvm-dis.cpp | 4 | ||||
-rw-r--r-- | llvm/tools/llvm-link/llvm-link.cpp | 2 | ||||
-rw-r--r-- | llvm/tools/opt/opt.cpp | 2 |
10 files changed, 18 insertions, 18 deletions
diff --git a/llvm/tools/as/as.cpp b/llvm/tools/as/as.cpp index 0fbd1e6cd41..59049748354 100644 --- a/llvm/tools/as/as.cpp +++ b/llvm/tools/as/as.cpp @@ -39,7 +39,7 @@ int main(int argc, char **argv) { cerr << "Here's the assembly:\n" << C.get(); if (OutputFilename != "") { // Specified an output filename? - 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! cerr << "Error opening '" << OutputFilename << "': File exists!\n" << "Use -f command line argument to force output\n"; @@ -61,7 +61,7 @@ int main(int argc, char **argv) { } OutputFilename += ".bc"; - 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! cerr << "Error opening '" << OutputFilename << "': File exists!\n" << "Use -f command line argument to force output\n"; diff --git a/llvm/tools/dis/dis.cpp b/llvm/tools/dis/dis.cpp index 55e8d5d6690..11e67c4fe8b 100644 --- a/llvm/tools/dis/dis.cpp +++ b/llvm/tools/dis/dis.cpp @@ -58,7 +58,7 @@ int main(int argc, char **argv) { } if (OutputFilename != "") { // Specified an output filename? - 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! cerr << "Error opening '" << OutputFilename << "': File exists! Sending to standard output.\n"; @@ -79,7 +79,7 @@ int main(int argc, char **argv) { } OutputFilename += ".ll"; - 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! cerr << "Error opening '" << OutputFilename << "': File exists! Sending to standard output.\n"; diff --git a/llvm/tools/link/link.cpp b/llvm/tools/link/link.cpp index db21db06544..4f7530ced3e 100644 --- a/llvm/tools/link/link.cpp +++ b/llvm/tools/link/link.cpp @@ -111,7 +111,7 @@ int main(int argc, char **argv) { ostream *Out = &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! cerr << "Error opening '" << OutputFilename << "': File exists!\n" << "Use -f command line argument to force output\n"; diff --git a/llvm/tools/llc/llc.cpp b/llvm/tools/llc/llc.cpp index 1d63b28b3a2..1e7defa7941 100644 --- a/llvm/tools/llc/llc.cpp +++ b/llvm/tools/llc/llc.cpp @@ -136,7 +136,7 @@ int main(int argc, char **argv) { "files on stdin not supported with tracing"); string traceFileName = GetFileNameRoot(InputFilename) + ".trace.bc"; - 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! cerr << "Error opening '" << OutputFilename << "': File exists!\n" << "Use -f command line argument to force output\n"; @@ -170,7 +170,7 @@ int main(int argc, char **argv) { // Figure out where we are going to send the output... std::ostream *Out = 0; if (OutputFilename != "") { // Specified an output filename? - 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! cerr << "Error opening '" << OutputFilename << "': File exists!\n" << "Use -f command line argument to force output\n"; @@ -185,7 +185,7 @@ int main(int argc, char **argv) { string OutputFilename = GetFileNameRoot(InputFilename); OutputFilename += ".s"; - 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! cerr << "Error opening '" << OutputFilename << "': File exists!\n" << "Use -f command line argument to force output\n"; diff --git a/llvm/tools/llvm-as/as.cpp b/llvm/tools/llvm-as/as.cpp index 0fbd1e6cd41..59049748354 100644 --- a/llvm/tools/llvm-as/as.cpp +++ b/llvm/tools/llvm-as/as.cpp @@ -39,7 +39,7 @@ int main(int argc, char **argv) { cerr << "Here's the assembly:\n" << C.get(); if (OutputFilename != "") { // Specified an output filename? - 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! cerr << "Error opening '" << OutputFilename << "': File exists!\n" << "Use -f command line argument to force output\n"; @@ -61,7 +61,7 @@ int main(int argc, char **argv) { } OutputFilename += ".bc"; - 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! cerr << "Error opening '" << OutputFilename << "': File exists!\n" << "Use -f command line argument to force output\n"; diff --git a/llvm/tools/llvm-as/llvm-as.cpp b/llvm/tools/llvm-as/llvm-as.cpp index 0fbd1e6cd41..59049748354 100644 --- a/llvm/tools/llvm-as/llvm-as.cpp +++ b/llvm/tools/llvm-as/llvm-as.cpp @@ -39,7 +39,7 @@ int main(int argc, char **argv) { cerr << "Here's the assembly:\n" << C.get(); if (OutputFilename != "") { // Specified an output filename? - 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! cerr << "Error opening '" << OutputFilename << "': File exists!\n" << "Use -f command line argument to force output\n"; @@ -61,7 +61,7 @@ int main(int argc, char **argv) { } OutputFilename += ".bc"; - 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! cerr << "Error opening '" << OutputFilename << "': File exists!\n" << "Use -f command line argument to force output\n"; diff --git a/llvm/tools/llvm-dis/dis.cpp b/llvm/tools/llvm-dis/dis.cpp index 55e8d5d6690..11e67c4fe8b 100644 --- a/llvm/tools/llvm-dis/dis.cpp +++ b/llvm/tools/llvm-dis/dis.cpp @@ -58,7 +58,7 @@ int main(int argc, char **argv) { } if (OutputFilename != "") { // Specified an output filename? - 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! cerr << "Error opening '" << OutputFilename << "': File exists! Sending to standard output.\n"; @@ -79,7 +79,7 @@ int main(int argc, char **argv) { } OutputFilename += ".ll"; - 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! cerr << "Error opening '" << OutputFilename << "': File exists! Sending to standard output.\n"; diff --git a/llvm/tools/llvm-dis/llvm-dis.cpp b/llvm/tools/llvm-dis/llvm-dis.cpp index 55e8d5d6690..11e67c4fe8b 100644 --- a/llvm/tools/llvm-dis/llvm-dis.cpp +++ b/llvm/tools/llvm-dis/llvm-dis.cpp @@ -58,7 +58,7 @@ int main(int argc, char **argv) { } if (OutputFilename != "") { // Specified an output filename? - 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! cerr << "Error opening '" << OutputFilename << "': File exists! Sending to standard output.\n"; @@ -79,7 +79,7 @@ int main(int argc, char **argv) { } OutputFilename += ".ll"; - 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! cerr << "Error opening '" << OutputFilename << "': File exists! Sending to standard output.\n"; diff --git a/llvm/tools/llvm-link/llvm-link.cpp b/llvm/tools/llvm-link/llvm-link.cpp index db21db06544..4f7530ced3e 100644 --- a/llvm/tools/llvm-link/llvm-link.cpp +++ b/llvm/tools/llvm-link/llvm-link.cpp @@ -111,7 +111,7 @@ int main(int argc, char **argv) { ostream *Out = &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! cerr << "Error opening '" << OutputFilename << "': File exists!\n" << "Use -f command line argument to force output\n"; diff --git a/llvm/tools/opt/opt.cpp b/llvm/tools/opt/opt.cpp index 6cbf25111bf..f9f4ba08a1f 100644 --- a/llvm/tools/opt/opt.cpp +++ b/llvm/tools/opt/opt.cpp @@ -127,7 +127,7 @@ int main(int argc, char **argv) { 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! cerr << "Error opening '" << OutputFilename << "': File exists!\n" << "Use -f command line argument to force output\n"; |