diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-08-23 07:10:06 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-08-23 07:10:06 +0000 |
commit | 6f4c60770cfe6c485cdcb1397df59d2c7778cbc9 (patch) | |
tree | 97f7dedfb1196d848a698f9be7650689d0698315 /tools/llvm-ld/llvm-ld.cpp | |
parent | 142ca8e81800ce6bcb511f3250bae23210d38ec8 (diff) |
Make the ProgramName variable a std::string so we can eliminate the path
portion fo the program name via sys::Path().getLast(). This makes error
messages more readable since this is invariably used only in error
messages. Instead of:
/path/to/llvm/bin/directory/toolname: error message
we will now get:
toolname: error message
Also, since we always have a program name (even if its defaulted), don't
check to see if it is set or not when generating error messages. This
eliminates a bunch of constant strings, saving a little under 1K of data.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29842 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-ld/llvm-ld.cpp')
0 files changed, 0 insertions, 0 deletions