[llvm-commits] CVS: llvm/tools/llvm-ld/llvm-ld.cpp

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



Changes in directory llvm/tools/llvm-ld:

llvm-ld.cpp updated: 1.26 -> 1.27
---
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:  (+1 -1)

 llvm-ld.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/tools/llvm-ld/llvm-ld.cpp
diff -u llvm/tools/llvm-ld/llvm-ld.cpp:1.26 llvm/tools/llvm-ld/llvm-ld.cpp:1.27
--- llvm/tools/llvm-ld/llvm-ld.cpp:1.26	Thu Jul  7 22:08:58 2005
+++ llvm/tools/llvm-ld/llvm-ld.cpp	Tue Dec 13 14:00:37 2005
@@ -400,7 +400,7 @@
   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);






More information about the llvm-commits mailing list