summaryrefslogtreecommitdiffstats
path: root/llvm/tools/gccld/Linker.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-06-02 00:22:24 +0000
committerChris Lattner <sabre@nondot.org>2004-06-02 00:22:24 +0000
commit85b943dd06c5c3abefcfd3468522f93b47cb71bb (patch)
tree44c8399af0d8854b69812064d0cb4060241dd5b2 /llvm/tools/gccld/Linker.cpp
parentfdcb868fef448afa74bdb9800aa9da011df66ada (diff)
downloadbcm5719-llvm-85b943dd06c5c3abefcfd3468522f93b47cb71bb.tar.gz
bcm5719-llvm-85b943dd06c5c3abefcfd3468522f93b47cb71bb.zip
Move some functions out of gccld.cpp to GenerateCode.cpp. This allows us
to reduce the inter-file interface in the gccld tool and gets some uninteresting code out of gccld.cpp. llvm-svn: 13942
Diffstat (limited to 'llvm/tools/gccld/Linker.cpp')
-rw-r--r--llvm/tools/gccld/Linker.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/tools/gccld/Linker.cpp b/llvm/tools/gccld/Linker.cpp
index 4f322d956ef..d7a74fb5aff 100644
--- a/llvm/tools/gccld/Linker.cpp
+++ b/llvm/tools/gccld/Linker.cpp
@@ -332,8 +332,8 @@ bool llvm::LinkFiles(const char *progname, Module *HeadModule,
std::cerr << "Trying to link archive '" << Pathname << "'\n";
if (LinkInArchive(HeadModule, Pathname, ErrorMessage, Verbose)) {
- PrintAndReturn(progname, ErrorMessage,
- ": Error linking in archive '" + Pathname + "'");
+ std::cerr << progname << ": Error linking in archive '" << Pathname
+ << "': " << ErrorMessage << "\n";
return true;
}
} else if (IsBytecode(Pathname)) {
@@ -341,8 +341,8 @@ bool llvm::LinkFiles(const char *progname, Module *HeadModule,
std::cerr << "Trying to link bytecode file '" << Pathname << "'\n";
if (LinkInFile(HeadModule, Pathname, ErrorMessage, Verbose)) {
- PrintAndReturn(progname, ErrorMessage,
- ": Error linking in bytecode file '" + Pathname + "'");
+ std::cerr << progname << ": Error linking in bytecode file '"
+ << Pathname << "': " << ErrorMessage << "\n";
return true;
}
}
OpenPOWER on IntegriCloud