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 | 328ead9fce26b505857234de0e3508b3372e2e6d (patch) | |
tree | e69bfa94872dc3b98e82cd94422af7d38f2d4f8d /tools | |
parent | 2f1890792c5da3692167050f6156f48634c2c6b8 (diff) | |
download | external_llvm-328ead9fce26b505857234de0e3508b3372e2e6d.zip external_llvm-328ead9fce26b505857234de0e3508b3372e2e6d.tar.gz external_llvm-328ead9fce26b505857234de0e3508b3372e2e6d.tar.bz2 |
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
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gccld/gccld.cpp | 6 | ||||
-rw-r--r-- | tools/llvm-ld/llvm-ld.cpp | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/tools/gccld/gccld.cpp b/tools/gccld/gccld.cpp index bad4a9c..644ee79 100644 --- a/tools/gccld/gccld.cpp +++ b/tools/gccld/gccld.cpp @@ -107,6 +107,10 @@ namespace { CO5("eh-frame-hdr", cl::Hidden, cl::desc("Compatibility option: ignored")); cl::opt<std::string> CO6("h", cl::Hidden, cl::desc("Compatibility option: ignored")); + cl::opt<bool> + CO7("start-group", cl::Hidden, cl::desc("Compatibility option: ignored")); + cl::opt<bool> + CO8("end-group", cl::Hidden, cl::desc("Compatibility option: ignored")); cl::alias A0("s", cl::desc("Alias for --strip-all"), cl::aliasopt(Strip)); @@ -211,7 +215,7 @@ int main(int argc, char **argv, char **envp ) { int exitCode = 0; std::string ProgName = sys::Path(argv[0]).getBasename(); - Linker TheLinker(ProgName, Verbose); + Linker TheLinker(ProgName, OutputFilename, Verbose); try { // Remove any consecutive duplicates of the same library... diff --git a/tools/llvm-ld/llvm-ld.cpp b/tools/llvm-ld/llvm-ld.cpp index 65a220a..03f1c45 100644 --- a/tools/llvm-ld/llvm-ld.cpp +++ b/tools/llvm-ld/llvm-ld.cpp @@ -400,7 +400,7 @@ int main(int argc, char **argv, char **envp) { 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); |