diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2005-12-13 20:00:37 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2005-12-13 20:00:37 +0000 |
commit | 6796b48e51252cccce7489f0e1c7df888e4f1ff6 (patch) | |
tree | 35c146b56a22eaf2622f8641de48f9fef7c91d47 /llvm/lib/Linker/Linker.cpp | |
parent | 175613adf67be8b1a4cfff09ab56aeeca826b590 (diff) | |
download | bcm5719-llvm-6796b48e51252cccce7489f0e1c7df888e4f1ff6.tar.gz bcm5719-llvm-6796b48e51252cccce7489f0e1c7df888e4f1ff6.zip |
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.
llvm-svn: 24699
Diffstat (limited to 'llvm/lib/Linker/Linker.cpp')
-rw-r--r-- | llvm/lib/Linker/Linker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Linker/Linker.cpp b/llvm/lib/Linker/Linker.cpp index c72f1b5aca8..9ffe7a121e0 100644 --- a/llvm/lib/Linker/Linker.cpp +++ b/llvm/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) |