In an amazing fit of stupidity, I flipped the conditional and didn't test
authorChris Lattner <sabre@nondot.org>
Tue, 22 Jan 2002 21:07:24 +0000 (21:07 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 22 Jan 2002 21:07:24 +0000 (21:07 +0000)
it right.  Sheesh :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1550 91177308-0d34-0410-b5e6-96231b3b80d8

tools/as/as.cpp
tools/dis/dis.cpp
tools/link/link.cpp
tools/llc/llc.cpp
tools/llvm-as/as.cpp
tools/llvm-as/llvm-as.cpp
tools/llvm-dis/dis.cpp
tools/llvm-dis/llvm-dis.cpp
tools/llvm-link/llvm-link.cpp
tools/opt/opt.cpp

index 0fbd1e6cd419a1d415a2998919315fac8537543f..59049748354e6984b2775d3bd758869e82297993 100644 (file)
@@ -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";
index 55e8d5d6690d8269f161e15221eb7e0fdaeb0d38..11e67c4fe8b076005ad415392d11703bdbd06307 100644 (file)
@@ -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";
index db21db06544038c527d841c02a97c4ace8644031..4f7530ced3e4e7f84305ef3cd56bcd483a670dde 100644 (file)
@@ -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";
index 1d63b28b3a273c9a150079e296b2b810042094d1..1e7defa7941d654bc64d757bdcda522c6cfce71e 100644 (file)
@@ -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";
index 0fbd1e6cd419a1d415a2998919315fac8537543f..59049748354e6984b2775d3bd758869e82297993 100644 (file)
@@ -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";
index 0fbd1e6cd419a1d415a2998919315fac8537543f..59049748354e6984b2775d3bd758869e82297993 100644 (file)
@@ -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";
index 55e8d5d6690d8269f161e15221eb7e0fdaeb0d38..11e67c4fe8b076005ad415392d11703bdbd06307 100644 (file)
@@ -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";
index 55e8d5d6690d8269f161e15221eb7e0fdaeb0d38..11e67c4fe8b076005ad415392d11703bdbd06307 100644 (file)
@@ -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";
index db21db06544038c527d841c02a97c4ace8644031..4f7530ced3e4e7f84305ef3cd56bcd483a670dde 100644 (file)
@@ -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";
index 6cbf25111bf9d1eb71b899ddba509f2bd61d8569..f9f4ba08a1f23560bff0952512cd09c0ace54a6e 100644 (file)
@@ -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";