[llvm-commits] CVS: llvm/include/llvm/Linker.h

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



Changes in directory llvm/include/llvm:

Linker.h updated: 1.15 -> 1.16
---
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:  (+5 -1)

 Linker.h |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletion(-)


Index: llvm/include/llvm/Linker.h
diff -u llvm/include/llvm/Linker.h:1.15 llvm/include/llvm/Linker.h:1.16
--- llvm/include/llvm/Linker.h:1.15	Thu Apr 21 15:11:51 2005
+++ llvm/include/llvm/Linker.h	Tue Dec 13 14:00:37 2005
@@ -62,7 +62,11 @@
     /// Construct the Linker with an empty module which will be given the
     /// name \p progname. \p progname will also be used for error messages.
     /// @brief Construct with empty module
-    Linker(const std::string& progname, unsigned Flags = 0 );
+    Linker(
+        const std::string& progname, ///< name of tool running linker
+        const std::string& modulename, ///< name of linker's end-result module
+        unsigned Flags = 0  ///< ControlFlags (one or more |'d together)
+    );
 
     /// Construct the Linker with a previously defined module, \p aModule. Use
     /// \p progname for the name of the program in error messages.






More information about the llvm-commits mailing list