#
f4744e9a |
| 28-Jan-2022 |
Shoaib Meenai <smeenai@fb.com> |
Reapply "[llvm-libtool-darwin] Print a warning if object file names are repeated"
Loosen the test to make it pass on Windows.
This reapplies commit 4993eff3e253a1c04e1a1a2fa5d68f6b33423419. This re
Reapply "[llvm-libtool-darwin] Print a warning if object file names are repeated"
Loosen the test to make it pass on Windows.
This reapplies commit 4993eff3e253a1c04e1a1a2fa5d68f6b33423419. This reverts commit 96c66040125e87808b23410632b1a6a34547b4e3.
show more ...
|
Revision tags: llvmorg-13.0.1, llvmorg-13.0.1-rc3, llvmorg-13.0.1-rc2 |
|
#
96c66040 |
| 12-Jan-2022 |
Shoaib Meenai <smeenai@fb.com> |
Revert "[llvm-libtool-darwin] Print a warning if object file names are repeated"
This reverts commit 4993eff3e253a1c04e1a1a2fa5d68f6b33423419.
Tests are failing on Windows: http://45.33.8.238/win/5
Revert "[llvm-libtool-darwin] Print a warning if object file names are repeated"
This reverts commit 4993eff3e253a1c04e1a1a2fa5d68f6b33423419.
Tests are failing on Windows: http://45.33.8.238/win/52360/step_11.txt. We'll need to account for forward slashes vs. backslashes.
show more ...
|
#
4993eff3 |
| 11-Jan-2022 |
Roger Kim <rgr@fb.com> |
[llvm-libtool-darwin] Print a warning if object file names are repeated
Print a warning if `llvm-libtool-darwin` if any of the object files provided by the user have the same file name.
The tool wi
[llvm-libtool-darwin] Print a warning if object file names are repeated
Print a warning if `llvm-libtool-darwin` if any of the object files provided by the user have the same file name.
The tool will now print a warning if there is a name collision across:
* Two object files * An object file and an object file from within a static library * Two object files from different static libraries
Here is an example of the error:
``` $ llvm-libtool-darwin -static -o archive.a out.o out.o error: file 'out.o' was specified multiple times. in: out.o in: out.o
$ llvm-libtool-darwin -static -o archive.a out.o $ llvm-libtool-darwin -static -o combined.a archive.a out.o error: file 'out.o' was specified multiple times. in: archive.a in: out.o ```
This change mimics apple's cctools libtool's behavior which always shows a warning in such cases.
Reviewed By: smeenai
Differential Revision: https://reviews.llvm.org/D113130
show more ...
|
#
e9b5b815 |
| 11-Jan-2022 |
Roger Kim <rgr@fb.com> |
[NFC][llvm-libtool-darwin] Encapsulate the process of adding a new member in a class
Here we are refactoring the code to encapsulate data into classes. This allows us to avoid passing the same objec
[NFC][llvm-libtool-darwin] Encapsulate the process of adding a new member in a class
Here we are refactoring the code to encapsulate data into classes. This allows us to avoid passing the same objects through many functions that don't directly use them. Now, functions that need to access data can do so from the class state.
Reviewed By: jhenderson, smeenai
Differential Revision: https://reviews.llvm.org/D113127
show more ...
|
Revision tags: llvmorg-13.0.1-rc1 |
|
#
1658980a |
| 08-Nov-2021 |
Roger Kim <rgr@fb.com> |
[NFC][llvm-libtool-darwin] Clean up names
Removing unclear abbreviations.
Reviewed By: jhenderson
Differential Revision: https://reviews.llvm.org/D113215
|
#
c51f947a |
| 08-Nov-2021 |
Roger Kim <rgr@fb.com> |
[NFC][llvm-libtool-darwin] Remove unnecessary conditionals around errors
The existing code has unnecessary logic to indirectly pass errors through function calls. This diff gets rid of the fluff.
T
[NFC][llvm-libtool-darwin] Remove unnecessary conditionals around errors
The existing code has unnecessary logic to indirectly pass errors through function calls. This diff gets rid of the fluff.
Test Plan: Existing unit tests
Reviewed By: jhenderson, drodriguez, alexander-shaposhnikov
Differential Revision: https://reviews.llvm.org/D113301
show more ...
|
Revision tags: llvmorg-13.0.0, llvmorg-13.0.0-rc4, llvmorg-13.0.0-rc3, llvmorg-13.0.0-rc2, llvmorg-13.0.0-rc1, llvmorg-14-init |
|
#
76374573 |
| 15-Jul-2021 |
Mehdi Amini <joker.eph@gmail.com> |
Use ManagedStatic and lazy initialization of cl::opt in libSupport to make it free of global initializer
We can build it with -Werror=global-constructors now. This helps in situation where libSuppor
Use ManagedStatic and lazy initialization of cl::opt in libSupport to make it free of global initializer
We can build it with -Werror=global-constructors now. This helps in situation where libSupport is embedded as a shared library, potential with dlopen/dlclose scenario, and when command-line parsing or other facilities may not be involved. Avoiding the implicit construction of these cl::opt can avoid double-registration issues and other kind of behavior.
Reviewed By: lattner, jpienaar
Differential Revision: https://reviews.llvm.org/D105959
show more ...
|
#
8d051d85 |
| 16-Jul-2021 |
Mehdi Amini <joker.eph@gmail.com> |
Revert "Use ManagedStatic and lazy initialization of cl::opt in libSupport to make it free of global initializer"
This reverts commit af9321739b20becf170e6bb5060b8d780e1dc8dd. Still some specific co
Revert "Use ManagedStatic and lazy initialization of cl::opt in libSupport to make it free of global initializer"
This reverts commit af9321739b20becf170e6bb5060b8d780e1dc8dd. Still some specific config broken in some way that requires more investigation.
show more ...
|
#
af932173 |
| 15-Jul-2021 |
Mehdi Amini <joker.eph@gmail.com> |
Use ManagedStatic and lazy initialization of cl::opt in libSupport to make it free of global initializer
We can build it with -Werror=global-constructors now. This helps in situation where libSuppor
Use ManagedStatic and lazy initialization of cl::opt in libSupport to make it free of global initializer
We can build it with -Werror=global-constructors now. This helps in situation where libSupport is embedded as a shared library, potential with dlopen/dlclose scenario, and when command-line parsing or other facilities may not be involved. Avoiding the implicit construction of these cl::opt can avoid double-registration issues and other kind of behavior.
Reviewed By: lattner, jpienaar
Differential Revision: https://reviews.llvm.org/D105959
show more ...
|
#
16b5e9d6 |
| 16-Jul-2021 |
Mehdi Amini <joker.eph@gmail.com> |
Revert "Use ManagedStatic and lazy initialization of cl::opt in libSupport to make it free of global initializer"
This reverts commit 42f588f39c5ce6f521e3709b8871d1fdd076292f. Broke some buildbots
|
#
42f588f3 |
| 15-Jul-2021 |
Mehdi Amini <joker.eph@gmail.com> |
Use ManagedStatic and lazy initialization of cl::opt in libSupport to make it free of global initializer
We can build it with -Werror=global-constructors now. This helps in situation where libSuppor
Use ManagedStatic and lazy initialization of cl::opt in libSupport to make it free of global initializer
We can build it with -Werror=global-constructors now. This helps in situation where libSupport is embedded as a shared library, potential with dlopen/dlclose scenario, and when command-line parsing or other facilities may not be involved. Avoiding the implicit construction of these cl::opt can avoid double-registration issues and other kind of behavior.
Reviewed By: lattner, jpienaar
Differential Revision: https://reviews.llvm.org/D105959
show more ...
|
Revision tags: llvmorg-12.0.1, llvmorg-12.0.1-rc4, llvmorg-12.0.1-rc3, llvmorg-12.0.1-rc2, llvmorg-12.0.1-rc1 |
|
#
ba7a92c0 |
| 21-Apr-2021 |
Nico Weber <thakis@chromium.org> |
[Support] Don't include VirtualFileSystem.h in CommandLine.h
CommandLine.h is indirectly included in ~50% of TUs when building clang, and VirtualFileSystem.h is large.
(Already remarked by jhenders
[Support] Don't include VirtualFileSystem.h in CommandLine.h
CommandLine.h is indirectly included in ~50% of TUs when building clang, and VirtualFileSystem.h is large.
(Already remarked by jhenderson on D70769.)
No behavior change.
Differential Revision: https://reviews.llvm.org/D100957
show more ...
|
Revision tags: llvmorg-12.0.0, llvmorg-12.0.0-rc5 |
|
#
0116d04d |
| 05-Apr-2021 |
Cyndy Ishida <cyndy_ishida@apple.com> |
[TextAPI] move source code files out of subdirectory, NFC
TextAPI/ELF has moved out into InterfaceStubs, so theres no longer a need to seperate out TextAPI between formats.
Reviewed By: ributzka, i
[TextAPI] move source code files out of subdirectory, NFC
TextAPI/ELF has moved out into InterfaceStubs, so theres no longer a need to seperate out TextAPI between formats.
Reviewed By: ributzka, int3, #lld-macho
Differential Revision: https://reviews.llvm.org/D99811
show more ...
|
Revision tags: llvmorg-12.0.0-rc4 |
|
#
c83cd8fe |
| 25-Mar-2021 |
Abhina Sreeskantharajan <Abhina.Sreeskantharajan@ibm.com> |
[NFC] Reordering parameters in getFile and getFileOrSTDIN
In future patches I will be setting the IsText parameter frequently so I will refactor the args to be in the following order. I have removed
[NFC] Reordering parameters in getFile and getFileOrSTDIN
In future patches I will be setting the IsText parameter frequently so I will refactor the args to be in the following order. I have removed the FileSize parameter because it is never used.
``` static ErrorOr<std::unique_ptr<MemoryBuffer>> getFile(const Twine &Filename, bool IsText = false, bool RequiresNullTerminator = true, bool IsVolatile = false);
static ErrorOr<std::unique_ptr<MemoryBuffer>> getFileOrSTDIN(const Twine &Filename, bool IsText = false, bool RequiresNullTerminator = true);
static ErrorOr<std::unique_ptr<MB>> getFileAux(const Twine &Filename, uint64_t MapSize, uint64_t Offset, bool IsText, bool RequiresNullTerminator, bool IsVolatile);
static ErrorOr<std::unique_ptr<WritableMemoryBuffer>> getFile(const Twine &Filename, bool IsVolatile = false); ```
Reviewed By: jhenderson
Differential Revision: https://reviews.llvm.org/D99182
show more ...
|
Revision tags: llvmorg-12.0.0-rc3, llvmorg-12.0.0-rc2 |
|
#
cdcb60a8 |
| 11-Feb-2021 |
Alexander Shaposhnikov <alexshap@fb.com> |
[llvm-libtool] Emit warnings for files without symbols
1. Emit warnings for files without symbols. 2. Add -no_warning_for_no_symbols.
Test plan: make check-all
Differential revision: https://revie
[llvm-libtool] Emit warnings for files without symbols
1. Emit warnings for files without symbols. 2. Add -no_warning_for_no_symbols.
Test plan: make check-all
Differential revision: https://reviews.llvm.org/D95843
show more ...
|
Revision tags: llvmorg-11.1.0, llvmorg-11.1.0-rc3, llvmorg-12.0.0-rc1, llvmorg-13-init, llvmorg-11.1.0-rc2, llvmorg-11.1.0-rc1, llvmorg-11.0.1, llvmorg-11.0.1-rc2, llvmorg-11.0.1-rc1 |
|
#
05f7b682 |
| 29-Oct-2020 |
Paul-Antoine Arras <paarras@quarkslab.com> |
[llvm-libtool-darwin] Add support for LLVM bitcode files
This diff adds support for LLVM bitcode objects to llvm-libtool-darwin.
Test plan: make check-all
Differential revision: https://reviews.ll
[llvm-libtool-darwin] Add support for LLVM bitcode files
This diff adds support for LLVM bitcode objects to llvm-libtool-darwin.
Test plan: make check-all
Differential revision: https://reviews.llvm.org/D88722
show more ...
|
Revision tags: llvmorg-11.0.0, llvmorg-11.0.0-rc6, llvmorg-11.0.0-rc5, llvmorg-11.0.0-rc4 |
|
#
97702c3d |
| 25-Sep-2020 |
Alexander Shaposhnikov <alexshap@fb.com> |
[Object][MachO] Refine the interface of Slice
This patch performs a minor cleanup of the class Slice: static methods and constructors which take a pointer but assume that it's not null now take the
[Object][MachO] Refine the interface of Slice
This patch performs a minor cleanup of the class Slice: static methods and constructors which take a pointer but assume that it's not null now take the argument by reference. NFC.
Test plan: make check-all
Differential revision: https://reviews.llvm.org/D88320
show more ...
|
Revision tags: llvmorg-11.0.0-rc3 |
|
#
68bae34c |
| 21-Aug-2020 |
Shoaib Meenai <smeenai@fb.com> |
[llvm-libtool-darwin] Add support for -V option
The -V option in cctools' libtool prints out the version number and performs any specified operation. Add this option to LLVM's version. cctools is mo
[llvm-libtool-darwin] Add support for -V option
The -V option in cctools' libtool prints out the version number and performs any specified operation. Add this option to LLVM's version. cctools is more forgiving of invalid command lines when -V is specified, but I think it's better to give errors instead of silently producing no output.
Unfortunately, when -V is present, options that would otherwise be required aren't anymore, so we need to perform some manual argument validation.
Reviewed By: alexshap
Differential Revision: https://reviews.llvm.org/D86359
show more ...
|
Revision tags: llvmorg-11.0.0-rc2 |
|
#
93c761f5 |
| 15-Aug-2020 |
Shoaib Meenai <smeenai@fb.com> |
[llvm-libtool-darwin] Use Optional operator overloads. NFC
Use operator bool instead of hasValue and operator* instead of getValue to simplify the code slightly.
|
#
1aed1e72 |
| 07-Aug-2020 |
Sameer Arora <sameerarora101@fb.com> |
[llvm-libtool-darwin] Add support for -l and -L
Add support for passing in libraries via `-l` and `-L` options to `llvm-libtool-darwin`.
Reviewed by jhenderson, smeenai
Differential Revision: http
[llvm-libtool-darwin] Add support for -l and -L
Add support for passing in libraries via `-l` and `-L` options to `llvm-libtool-darwin`.
Reviewed by jhenderson, smeenai
Differential Revision: https://reviews.llvm.org/D85540
show more ...
|
#
8f6f6f40 |
| 05-Aug-2020 |
Sameer Arora <sameerarora101@fb.com> |
[llvm-libtool-darwin] Support universal outputs
Add support for producing universal binaries containing archives when `llvm-libtool-darwin` is given inputs of multiple architectures.
Reviewed by jh
[llvm-libtool-darwin] Support universal outputs
Add support for producing universal binaries containing archives when `llvm-libtool-darwin` is given inputs of multiple architectures.
Reviewed by jhenderson, smeenai
Differential Revision: https://reviews.llvm.org/D85334
show more ...
|
#
bd2853f7 |
| 28-Jul-2020 |
Sameer Arora <sameerarora101@fb.com> |
[llvm-libtool-darwin] Add support for -arch_only
Add support for -arch_only option for llvm-libtool-darwin. This diff also adds support for accepting universal files as input and flattening them to
[llvm-libtool-darwin] Add support for -arch_only
Add support for -arch_only option for llvm-libtool-darwin. This diff also adds support for accepting universal files as input and flattening them to create the required static library. Supports input universal files contaning both Mach-O object files or archives.
Differences from cctools' libtool: - `-arch_only` can be specified multiple times - archives containing universal files are considered invalid (libtool allows such archives)
Reviewed by jhenderson, smeenai
Differential Revision: https://reviews.llvm.org/D84770
show more ...
|
Revision tags: llvmorg-11.0.0-rc1 |
|
#
71a1f135 |
| 20-Jul-2020 |
Sameer Arora <sameerarora101@fb.com> |
[llvm-libtool-darwin] Add support for -D and -U options
Add support for `-D` and `-U` options for llvm-libtool-darwin. `-D` allows for using zero for timestamps and UIDs/GIDs. `-U` allows for using
[llvm-libtool-darwin] Add support for -D and -U options
Add support for `-D` and `-U` options for llvm-libtool-darwin. `-D` allows for using zero for timestamps and UIDs/GIDs. `-U` allows for using actual timestamps and UIDs/GIDs.
Reviewed by jhenderson, smeenai
Differential Revision: https://reviews.llvm.org/D84209
show more ...
|
#
d9a91929 |
| 20-Jul-2020 |
Sameer Arora <sameerarora101@fb.com> |
[llvm-libtool-darwin] Add support for -filelist option
Add support for `-filelist` option for llvm-libtool-darwin. `-filelist` option allows for passing in a file containing a list of filenames.
Re
[llvm-libtool-darwin] Add support for -filelist option
Add support for `-filelist` option for llvm-libtool-darwin. `-filelist` option allows for passing in a file containing a list of filenames.
Reviewed by jhenderson, smeenai
Differential Revision: https://reviews.llvm.org/D84206
show more ...
|
Revision tags: llvmorg-12-init, llvmorg-10.0.1, llvmorg-10.0.1-rc4, llvmorg-10.0.1-rc3 |
|
#
9e783716 |
| 02-Jul-2020 |
Sameer Arora <sameerarora101@fb.com> |
[llvm-libtool-darwin] Allow flattening archives
Add support for flattening archives while creating static libraries. Hence, can now pass archives as input in addition to Mach-O binaries. Furthermore
[llvm-libtool-darwin] Allow flattening archives
Add support for flattening archives while creating static libraries. Hence, can now pass archives as input in addition to Mach-O binaries. Furthermore, archives themselves must only conatain Mach-O binaries. As per cctools' libtool's behavior, llvm-libtool-darwin does not flatten archives recursively.
Reviewed by alexshap, smeenai, jhenderson
Differential Revision: https://reviews.llvm.org/D83520
show more ...
|