[llvm-commits] CVS: llvm/lib/Linker/Linker.cpp

Reid Spencer reid at x10sys.com
Tue Dec 13 12:00:50 PST 2005



Changes in directory llvm/lib/Linker:

Linker.cpp updated: 1.7 -> 1.8
---
Log message:

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.


---
Diffs of the changes:  (+2 -2)

 Linker.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/lib/Linker/Linker.cpp
diff -u llvm/lib/Linker/Linker.cpp:1.7 llvm/lib/Linker/Linker.cpp:1.8
--- llvm/lib/Linker/Linker.cpp:1.7	Thu Jul  7 18:21:43 2005
+++ llvm/lib/Linker/Linker.cpp	Tue Dec 13 14:00:37 2005
@@ -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)






More information about the llvm-commits mailing list