summaryrefslogtreecommitdiff
path: root/lld/utils
Commit message (Collapse)AuthorAgeFilesLines
* Python 2/3 compatibilitySerge Guelton2019-03-201-4/+9
| | | | | | | | This should be the only change required to have lld's python code base compatible with both Python 2 and Python 3 Differential Revision: https://reviews.llvm.org/D59538 llvm-svn: 356538
* Update the file headers across all of the LLVM projects in the monorepoChandler Carruth2019-01-191-4/+3
| | | | | | | | | | | | | | | | | to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
* Add a script to run various benchmarks and send the result to lnt.Rafael Espindola2017-11-142-0/+174
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Lnt is both a server and a set of script for benchmarking llvm. I don't think it makes sense to use the scripts for lld since our benchmarks are quite different. The server on the other hand is very general and seems to work well for tracking any quantities. This patch adds a script to lld that can be used to run various benchmarks and send the result to lnt. The benchmarks are assumed to each be a response file in a subdirectory. Each subdirectory can contain multiple response files. That can be used to have a plain response.txt and a response-icf.txt for example. The name of each benchmark is the combination of the directory name and the "flavor": firefox-gc, chromium-icf, etc. For the first version the script uses perf and collects all the metrics that a plain "perf stat" prints. This script can then be used by a developer to test a patch or by a bot to keep track of lld's performance. llvm-svn: 318158
* Remove astyle-options.Rui Ueyama2015-07-291-7/+0
| | | | | | | We have our own code formatting tool, clang-format. I believe no one is using "astyle" to format the code. llvm-svn: 243570
* Move the 'linker-script-test' binary to the tools directory.Chandler Carruth2015-03-115-107/+0
| | | | | | | | | | | | | | | The canonical LLVM directory arrangement places binaries in the 'utils/' tree when they are used as part of building the project. For example, the tblgen binaries are built out of 'utils/' trees. Tools which are not used by any other part of the build, including testing utilities, are just in the 'tools' directory. For example, in Clang we have 'c-index-test' which is exactly the same kind of thing as 'linker-script-test'. Differential Revision: http://reviews.llvm.org/D8269 llvm-svn: 231973
* lldReaderWriter.a depends on lldCore.a so make sureEric Christopher2015-02-051-1/+1
| | | | | | to link that in as well. llvm-svn: 228252
* Make ELFLinkingContext own LinkerScript buffersRafael Auler2015-02-031-4/+4
| | | | | | | | | | | | | | Currently, no one owns script::Parser buffers, but yet ELFLinkingContext gets updated with StringRef pointers to data inside Parser buffers. Since this buffer is locally owned inside GnuLdDriver::evalLinkerScript(), as soon as this function finishes, all pointers in ELFLinkingContext that comes from linker scripts get invalid. The problem is that we need someone to own linker scripts data structures and, since ELFLinkingContext transports references to linker scripts data, we can simply make it also own all linker scripts data. Differential Revision: http://reviews.llvm.org/D7323 llvm-svn: 227975
* add_lld_library -> add_llvm_libraryGreg Fitzgerald2015-01-211-1/+1
| | | | | | | | | | | * Works better for shared libraries (sets PRIVATE instead of INTERFACE) * Fixes http://llvm.org/bugs/show_bug.cgi?id=22269 * Also, use build-target names instead of component names Differential Revision: http://reviews.llvm.org/D7074 From: Greg Fitzgerald <garious@gmail.com> llvm-svn: 226702
* Revert "Add support library."Shankar Easwaran2014-11-111-1/+1
| | | | | | This reverts commit r221583. llvm-svn: 221649
* Add support library.Shankar Easwaran2014-11-101-1/+1
| | | | | | | | | The parsing routines in the linker script to parse strings encoded in various formats(hexadecimal, octal, decimal, etc), is needed by the GNU driver too. This library provides helper functions for all flavors and flavors to add helper functions which other flavors may make use of. llvm-svn: 221583
* Update for llvm api change.Rafael Espindola2014-07-061-6/+8
| | | | llvm-svn: 212407
* Refer to error_code with an std prefix.Rafael Espindola2014-06-121-2/+2
| | | | llvm-svn: 210820
* Initial set of MakefilesIain Sandoe2014-06-042-0/+41
| | | | | | | | This provides support for the autoconfing & make build style. The format, style and implementation follows that used within the llvm and clang projects. TODO: implement out-of-source documentation builds. llvm-svn: 210177
* Replace OwningPtr with std::unique_ptr.Ahmed Charles2014-03-131-4/+4
| | | | | | | | This results in some simplifications to the code where an OwningPtr had to be used with the previous api and then ownership moved to a unique_ptr for the rest of lld. llvm-svn: 203809
* Add basic linker script parsing.Michael J. Spencer2013-03-013-0/+64
| | | | llvm-svn: 176309
* Initial commit. Code by Nick Kledzik. Cleanups and build system by me.Michael J. Spencer2011-12-181-0/+7
llvm-svn: 146844