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 --- lib/Linker/Linker.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Linker/Linker.cpp') diff --git a/lib/Linker/Linker.cpp b/lib/Linker/Linker.cpp index c72f1b5aca..9ffe7a121e 100644 --- a/lib/Linker/Linker.cpp +++ b/lib/Linker/Linker.cpp @@ -19,14 +19,14 @@ using namespace llvm; -Linker::Linker(const std::string& progname, unsigned flags) +Linker::Linker(const std::string& progname, const std::string& modname, unsigned flags) : Composite(0) , LibPaths() , Flags(flags) , Error() , ProgramName(progname) { - Composite = new Module(progname); + Composite = new Module(modname); } Linker::Linker(const std::string& progname, Module* aModule, unsigned flags) -- cgit v1.2.3-18-g5258