summaryrefslogtreecommitdiff
path: root/lib/Linker/LinkArchives.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
commit0ebee7410f2b826d624fa81acb8c2e4e09c491ab (patch)
treec4eef3aad9c55ab144cee602876173020baaa648 /lib/Linker/LinkArchives.cpp
parent7e88d418bbfbaa1d8cae45354ab576f337f8ab58 (diff)
downloadllvm-0ebee7410f2b826d624fa81acb8c2e4e09c491ab.tar.gz
llvm-0ebee7410f2b826d624fa81acb8c2e4e09c491ab.tar.bz2
llvm-0ebee7410f2b826d624fa81acb8c2e4e09c491ab.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13942 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Linker/LinkArchives.cpp')
-rw-r--r--lib/Linker/LinkArchives.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Linker/LinkArchives.cpp b/lib/Linker/LinkArchives.cpp
index 4f322d956e..d7a74fb5af 100644
--- a/lib/Linker/LinkArchives.cpp
+++ b/lib/Linker/LinkArchives.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;
}
}