diff options
author | Chris Lattner <sabre@nondot.org> | 2004-06-02 00:22:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-06-02 00:22:24 +0000 |
commit | 0ebee7410f2b826d624fa81acb8c2e4e09c491ab (patch) | |
tree | c4eef3aad9c55ab144cee602876173020baaa648 /tools/gccld/Linker.cpp | |
parent | 7e88d418bbfbaa1d8cae45354ab576f337f8ab58 (diff) |
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 'tools/gccld/Linker.cpp')
-rw-r--r-- | tools/gccld/Linker.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/gccld/Linker.cpp b/tools/gccld/Linker.cpp index 4f322d956e..d7a74fb5af 100644 --- a/tools/gccld/Linker.cpp +++ b/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; } } |