mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
Hrm, if there is an error loading a file, try printing a message so the
user knows that... llvm-svn: 16524
This commit is contained in:
parent
25a0e82d62
commit
ca55a0ff6e
@ -80,11 +80,19 @@ int main(int argc, char **argv) {
|
||||
std::string ErrorMessage;
|
||||
|
||||
std::auto_ptr<Module> Composite(LoadFile(InputFilenames[BaseArg]));
|
||||
if (Composite.get() == 0) return 1;
|
||||
if (Composite.get() == 0) {
|
||||
std::cerr << argv[0] << ": error loading file '"
|
||||
<< InputFilenames[BaseArg] << "'\n";
|
||||
return 1;
|
||||
}
|
||||
|
||||
for (unsigned i = BaseArg+1; i < InputFilenames.size(); ++i) {
|
||||
std::auto_ptr<Module> M(LoadFile(InputFilenames[i]));
|
||||
if (M.get() == 0) return 1;
|
||||
if (M.get() == 0) {
|
||||
std::cerr << argv[0] << ": error loading file '"
|
||||
<< InputFilenames[i] << "'\n";
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (Verbose) std::cerr << "Linking in '" << InputFilenames[i] << "'\n";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user