1. Use better error messages in LinkFiles().
[oota-llvm.git] / tools / gccld / gccld.cpp
index 8b9dfd1123aa56637d488f81c027a9c0ac6e96e9..b991cd57ea0b0364dbd2aac41c4ffa3714e89b22 100644 (file)
@@ -256,7 +256,8 @@ main(int argc, char **argv, char ** envp)
                   Libraries.end());
 
   // Link in all of the files
-  LinkFiles(argv[0], Composite.get(), InputFilenames, Verbose);
+  if (LinkFiles(argv[0], Composite.get(), InputFilenames, Verbose))
+    return 1; // Error already printed
   LinkLibraries(argv[0], Composite.get(), Libraries, LibPaths, Verbose, Native);
 
   // Link in all of the libraries next...