llvm.org GIT mirror llvm / 48f44cf
Hrm, if there is an error loading a file, try printing a message so the user knows that... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16524 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 15 years ago
1 changed file(s) with 10 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
7979 std::string ErrorMessage;
8080
8181 std::auto_ptr Composite(LoadFile(InputFilenames[BaseArg]));
82 if (Composite.get() == 0) return 1;
82 if (Composite.get() == 0) {
83 std::cerr << argv[0] << ": error loading file '"
84 << InputFilenames[BaseArg] << "'\n";
85 return 1;
86 }
8387
8488 for (unsigned i = BaseArg+1; i < InputFilenames.size(); ++i) {
8589 std::auto_ptr M(LoadFile(InputFilenames[i]));
86 if (M.get() == 0) return 1;
90 if (M.get() == 0) {
91 std::cerr << argv[0] << ": error loading file '"
92 << InputFilenames[i] << "'\n";
93 return 1;
94 }
8795
8896 if (Verbose) std::cerr << "Linking in '" << InputFilenames[i] << "'\n";
8997