Initial Checkin of gccld
[oota-llvm.git] / tools / llvm-link / llvm-link.cpp
index ad4cbdbe8cb2c7154aa9a95d62a981ca12000923..4f7530ced3e4e7f84305ef3cd56bcd483a670dde 100644 (file)
@@ -19,7 +19,6 @@
 #include <fstream>
 #include <memory>
 #include <sys/types.h>     // For FileExists
-typedef int blksize_t;   // SYS/TYPES is broken!!!
 #include <sys/stat.h>
 
 
@@ -112,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";