From 328ead9fce26b505857234de0e3508b3372e2e6d Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Tue, 13 Dec 2005 20:00:37 +0000 Subject: Adjust the constructor to the Linker class to take an argument that names the module being constructed. This is used to correctly name the module. Previously the name of the linker tool was used which produces confusing output when the module identifier is used in an error message. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24699 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-ld/llvm-ld.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/llvm-ld') diff --git a/tools/llvm-ld/llvm-ld.cpp b/tools/llvm-ld/llvm-ld.cpp index 65a220a..03f1c45 100644 --- a/tools/llvm-ld/llvm-ld.cpp +++ b/tools/llvm-ld/llvm-ld.cpp @@ -400,7 +400,7 @@ int main(int argc, char **argv, char **envp) { try { // Initial global variable above for convenience printing of program name. progname = sys::Path(argv[0]).getBasename(); - Linker TheLinker(progname, Verbose); + Linker TheLinker(progname, OutputFilename, Verbose); // Set up the library paths for the Linker TheLinker.addPaths(LibPaths); -- cgit v1.1