summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-lipo/llvm-lipo.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [llvm-lipo] Add support for -extractAlexander Shaposhnikov2019-11-211-11/+55
| | | | | | | | This diff adds support for -extract. Test plan: make check-all Differential revision: https://reviews.llvm.org/D70522
* [llvm-lipo] Add missing castAlexander Shaposhnikov2019-10-151-1/+2
| | | | | | | | Add missing cast (to correctly sum 32-bit integers). Test plan: make check-all llvm-svn: 374945
* [llvm-lipo] Pass ArrayRef by value.Alexander Shaposhnikov2019-10-121-5/+5
| | | | | | | | Pass ArrayRef by value, fix formatting. NFC. Test plan: make check-all llvm-svn: 374637
* [llvm-lipo] Relax the check of the specified input file architectureAlexander Shaposhnikov2019-10-071-6/+12
| | | | | | | | | | | | cctools lipo only compares the cputypes when it verifies that the specified (via -arch) input file and the architecture match. This diff adjusts the behavior of llvm-lipo accordingly. Differential revision: https://reviews.llvm.org/D68319 Test plan: make check-all llvm-svn: 373966
* [llvm-lipo] Add support for -arch Alexander Shaposhnikov2019-09-271-39/+42
| | | | | | | | | | Add support for -arch. Differential revision: https://reviews.llvm.org/D68116 Test plan: make check-all llvm-svn: 373132
* [llvm-lipo] Add support for archives Alexander Shaposhnikov2019-09-231-140/+204
| | | | | | | | | | | Add support for creating universal binaries which can contain an archive. Differential revision: https://reviews.llvm.org/D67758 Test plan: make check-all llvm-svn: 372666
* [Object] Extend MachOUniversalBinary::getObjectForArchAlexander Shaposhnikov2019-09-191-4/+3
| | | | | | | | | | | | Make the method MachOUniversalBinary::getObjectForArch return MachOUniversalBinary::ObjectForArch and add helper methods MachOUniversalBinary::getMachOObjectForArch, MachOUniversalBinary::getArchiveForArch for those who explicitly expect to get a MachOObjectFile or an Archive. Differential revision: https://reviews.llvm.org/D67700 Test plan: make check-all llvm-svn: 372278
* [llvm-lipo] Implement -segalignAnusha Basana2019-08-051-5/+76
| | | | | | | | | | Sets section alignments of the specified architecture slices to the alignment values. Alignment values are hexadecimal values that are powers of 2. Differential Revision: https://reviews.llvm.org/D65420 llvm-svn: 367908
* [llvm-lipo] Implement -replaceAnusha Basana2019-07-291-1/+110
| | | | | | | | | Replaces specified architecture in universal binary input file with slice from the file_name argument passed into the replace command. Differential Revision: https://reviews.llvm.org/D65247 llvm-svn: 367248
* [llvm-lipo] Implement alignment function in -createShoaib Meenai2019-07-251-4/+36
| | | | | | | | | | | Summary: Removes hard coded valuse for alignment in -create. Patch by Anusha Basana <anusha.basana@gmail.com> Differential Revision: https://reviews.llvm.org/D64871 llvm-svn: 366970
* [llvm-lipo] Implement -infoShoaib Meenai2019-07-231-14/+45
| | | | | | | | | | Prints architecture type of all input files. Patch by Anusha Basana <anusha.basana@gmail.com> Differential Revision: https://reviews.llvm.org/D64668 llvm-svn: 366772
* Fix MSVC "result of 32-bit shift implicitly converted to 64 bits" warning. NFCI.Simon Pilgrim2019-07-191-1/+1
| | | | llvm-svn: 366563
* Reapply [llvm-lipo] Implement -create (with hardcoded alignments)Shoaib Meenai2019-07-181-18/+204
| | | | | | | | | | | | | | | | This reapplies r366142 with a fix for the failing Windows test. Original commit message: Creates universal binary output file from input files. Currently uses hard coded value for alignment. Want to get the create functionality approved before implementing the alignment function. Patch by Anusha Basana <anusha.basana@gmail.com> Differential Revision: https://reviews.llvm.org/D64102 llvm-svn: 366512
* Revert [llvm-lipo] Implement -create (with hardcoded alignments)Shoaib Meenai2019-07-151-204/+18
| | | | | | | | | This reverts r366142 (git commit 67cee1dc7ee285b03372eb818a3894d35efa7394) The test is failing on the Windows buildbots. Reverting while I investigate. llvm-svn: 366144
* [llvm-lipo] Implement -create (with hardcoded alignments)Shoaib Meenai2019-07-151-18/+204
| | | | | | | | | | | | Creates universal binary output file from input files. Currently uses hard coded value for alignment. Want to get the create functionality approved before implementing the alignment function. Patch by Anusha Basana <anusha.basana@gmail.com> Differential Revision: https://reviews.llvm.org/D64102 llvm-svn: 366142
* [MachO] Add valid architecture functionShoaib Meenai2019-07-041-2/+9
| | | | | | | | | | | Added array of valid architectures and function returning array. Modified llvm-lipo to include list of valid architectures in error message for invalid arch. Patch by Anusha Basana <anusha.basana@gmail.com> Differential Revision: https://reviews.llvm.org/D63735 llvm-svn: 365099
* [llvm-lipo] Implement -thinShoaib Meenai2019-06-211-4/+76
| | | | | | | | | | Creates thin output file of specified arch_type from the fat input file. Patch by Anusha Basana <anushabasana@fb.com> Differential Revision: https://reviews.llvm.org/D63341 llvm-svn: 364107
* [llvm-lipo] Drop unneeded braces. NFCShoaib Meenai2019-06-071-3/+2
| | | | llvm-svn: 362841
* [llvm-lipo] Implement -archsShoaib Meenai2019-06-071-5/+77
| | | | | | | | | | | Displays the architecture names of an input file. Unknown architectures are represented by unknown(cputype,cpusubtype). Patch by Anusha Basana <anusha.basana@gmail.com> Differential Revision: https://reviews.llvm.org/D62753 llvm-svn: 362840
* [tools] Introduce llvm-lipoAlexander Shaposhnikov2019-05-281-0/+185
This diff starts the implementation of llvm-lipo which is supposed to be a drop-in replacement for the well-known tool lipo. Test plan: make check-all Differential revision: https://reviews.llvm.org/D61927 llvm-svn: 361896
OpenPOWER on IntegriCloud