aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/clang/llvm-objdump
Commit message (Collapse)AuthorAgeFilesLines
* Remove residual blank line at start of MakefileWarner Losh2024-07-151-1/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* Merge llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967Dimitry Andric2024-04-061-0/+2
| | | | | | | | This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project release/18.x llvmorg-18.1.0-rc2-0-gc6c86965d967. PR: 276104 MFC after: 1 month
* Merge llvm-project main llvmorg-18-init-15088-gd14ee76181fbDimitry Andric2024-04-062-0/+17
| | | | | | | | This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-15088-gd14ee76181fb. PR: 276104 MFC after: 1 month
* dirdeps: Update/fix Makefile.depend* for toolchainKa Ho Ng2023-11-271-2/+4
| | | | This fixes make pseudo/toolchain.
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-162-2/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Move LIBADD lines from usr.bin/clang/*/Makefile one level upDimitry Andric2023-07-231-3/+0
| | | | | | | | | Some utilities under usr.bin/clang were only linked to libz, while most others were linked to libz and libzstd. Make this consistent, and remove repetition, by moving these LIBADD lines to usr.bin/clang/clang.prog.mk and usr.bin/clang/clang.prog.mk. MFC after: 3 days
* Merge llvm-project release/16.x llvmorg-16.0.4-0-gae42196bc493Dimitry Andric2023-06-221-20/+105
| | | | | | | | This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-16.0.4-0-gae42196bc493 (aka 16.0.4 release). PR: 271047 MFC after: 1 month
* Merge llvm-project main llvmorg-16-init-18548-gb0daacf58f41Dimitry Andric2023-06-221-0/+1
| | | | | | | | This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-16-init-18548-gb0daacf58f41. PR: 271047 MFC after: 1 month
* Revert "Ensure .inc files are regenerated when llvm/clang tblgen binaries ↵Dimitry Andric2023-03-291-2/+0
| | | | | | | | | | | | change" This reverts commit ab80f0b21fbb9c44d40e6f7a99090188f4ed2f71. The intent of this change was to avoid possible compilation errors when certain .inc files were not regenerated, but the method turns out to cause way more rebuilds than anticipated. Another method will have to be found, and in the mean time, WITH_CLEAN is the solution that always works. Fixes: ab80f0b21fbb
* Revert "Rework {clang,lldb,llvm}-tblgen invocations to add --write-if-changed"Dimitry Andric2023-03-291-2/+2
| | | | | | | | This reverts commit 8f391d9098083044793ff036dff8c96930fb1553. There are still a bunch of problems, and apparently ${.ALLSRC} does not work as I expected. Fixes: 8f391d909808
* Rework {clang,lldb,llvm}-tblgen invocations to add --write-if-changedDimitry Andric2023-03-291-2/+2
| | | | | | | | | | | | | This flag ensures that the tblgen tools do not actually touch the produced .inc file, if there are no changes to the contents. In turn, this may prevent a number of rebuilds of files that include such .inc files, saving build time. While here, ensure that the shell invocations to locate the used tblgen binary do not show unnecessary error messages. Reported by: des MFC after: 1 week
* Ensure .inc files are regenerated when llvm/clang tblgen binaries changeDimitry Andric2023-02-261-0/+2
| | | | | | | | | | | | | | | | | | | | | | | When doing a fully incremental build (with WITHOUT_CLEAN enabled), from a commit before llvm 15 was merged (3264f6b88fce), to a commit after that, a number of .inc files were not regenerated. This could lead to unexpected compilation errors when these .inc files were included from llvm-project sources, similar to: In file included from /usr/src/contrib/llvm-project/clang/lib/CodeGen/CGBuiltin.cpp:8268: /usr/obj/usr/src/amd64.amd64/lib/clang/libclang/clang/Basic/arm_mve_builtin_cg.inc:279:18: error: no matching constructor for initialization of 'clang::CodeGen::Address' Address Val2 = Address(Val1, CharUnits::fromQuantity(2)); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Work around this by making the .inc files dependent on the tblgen binary used for generating them. E.g., we can relatively safely assume that if the binary gets updated, the .inc files must also be updated. (Although this is not 100% optimal, the gain by complicating things even more is probaby not worth the effort.) MFC after: 3 days Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D38770
* Merge llvm-project main llvmorg-15-init-15358-g53dc0f10787Dimitry Andric2023-02-081-0/+1
| | | | | | | | This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-15-init-15358-g53dc0f10787. PR: 265425 MFC after: 2 weeks
* Always install llvm-objdump as objdumpEd Maste2022-12-121-2/+0
| | | | | | | | | | Instead of providing no /usr/bin/objdump when LLVM_BINUTILS is false. PR: 267854 [exp-run] Reviewed by: dim MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D37445
* Merge llvm-project main llvmorg-13-init-16847-g88e66fa60ae5Dimitry Andric2021-11-131-0/+17
| | | | | | | | | This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-13-init-16847-g88e66fa60ae5, the last commit before the upstream release/13.x branch was created. PR: 258209 MFC after: 2 weeks
* Add WITH_LLVM_BINUTILS to install LLVM binutils instead of ElftoolchainAlex Richardson2021-09-061-0/+7
| | | | | | | | | | | | | | | | | | | When WITH_LLVM_BINUTILS is set, we will install the LLVM binutils as ar/ranlib/nm/objcopy/etc. instead of the elftoolchain ones. Having the LLVM binutils instead of the elftoolchain ones allows us to use features such as LTO that depend on binutils that understand LLVM IR. Another benefit will be an improved user-experience when compiling with AddressSanitizer, since ASAN does not symbolize backtraces correctly if addr2line is elftoolchain addr2line instead of llvm-symbolizer. See https://lists.freebsd.org/archives/freebsd-toolchain/2021-July/000062.html for more details. This is currently off by default but will be turned on by default at some point in the near future. Reviewed By: emaste Differential Revision: https://reviews.freebsd.org/D31060
* Merge llvm-project 12.0.0 releaseDimitry Andric2021-06-131-194/+489
| | | | | | | | This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-12.0.0-0-gd28af7c654d8, a.k.a. 12.0.0 release. PR: 255570 MFC after: 6 weeks
* Update Makefiles under lib/clang and usr.bin/clang for 11.0.0 builds,Dimitry Andric2020-08-061-0/+1
| | | | | | | and also bump the version in the mtree files. Notes: svn path=/projects/clang1100-import/; revision=363984
* Regenerate ReStructuredText based manpages for llvm-project tools:Dimitry Andric2020-06-271-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bugpoint.1 * clang.1 * llc.1 * lldb.1 * lli.1 * llvm-ar.1 * llvm-as.1 * llvm-bcanalyzer.1 * llvm-cov.1 * llvm-diff.1 * llvm-dis.1 * llvm-dwarfdump.1 * llvm-extract.1 * llvm-link.1 * llvm-mca.1 * llvm-nm.1 * llvm-pdbutil.1 * llvm-profdata.1 * llvm-symbolizer.1 * llvm-tblgen.1 * opt.1 Add newly generated manpages for: * llvm-addr2line.1 (this is an alias of llvm-symbolizer) * llvm-cxxfilt.1 * llvm-objcopy.1 * llvm-ranlib.1 (this is an alias of llvm-ar) Note that llvm-objdump.1 is an exception, as upstream has both a plain .1 file, and a .rst variant. These will have to be reconciled upstream first. MFC after: 3 days Notes: svn path=/head/; revision=362679
* Move all sources from the llvm project into contrib/llvm-project.Dimitry Andric2019-12-201-1/+1
| | | | | | | | | | | | | This uses the new layout of the upstream repository, which was recently migrated to GitHub, and converted into a "monorepo". That is, most of the earlier separate sub-projects with their own branches and tags were consolidated into one top-level directory, and are now branched and tagged together. Updating the vendor area to match this layout is next. Notes: svn path=/head/; revision=355940
* llvm-objdump.1: remove more unintentional optionsEd Maste2018-11-271-10/+1
| | | | | | | | | | | | Some options come from static constructors in LLVM libraries and are automatically added to llvm's usage output. They're not really supposed to be llvm-objdump options. Reported by: Fangrui Song in LLVM review D54864 Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=341055
* llvm-objdump.1: fix igor / mandoc -Tlint warningsEd Maste2018-11-261-2/+3
| | | | | | | Accidentally omitted from r340972. Notes: svn path=/head/; revision=340975
* llvm-objdump.1: remove invalid optionsEd Maste2018-11-261-8/+0
| | | | | | | | | | | | Some options appear in llvm-objdump's usage information as a side effect of its option parsing implementation and are not actually llvm-objdump options. Reported in LLVM review https://reviews.llvm.org/D54864. Reported by: Fangrui Song Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=340973
* llvm-objdump: initial man pageEd Maste2018-11-262-1/+213
| | | | | | | | | | | | | | | | | | Based on llvm-objdump's online documentation and usage information. This serves as a starting point; additional detail and cleanup still required. Also being submitted upstream in LLVM review D54864. I expect to use this bespoke copy while we have LLVM 6.0 or 7.0 in FreeBSD; when we update to LLVM 8.0 it should be upstream and we will switch to it. PR: 233437 Reviewed by: bcr (man formatting) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D18309 Notes: svn path=/head/; revision=340972
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Initial updates to llvm/clang build glue.Dimitry Andric2017-01-031-0/+1
| | | | Notes: svn path=/projects/clang400-import/; revision=311166
* DIRDEPS_BUILD: Connect the new clang build.Bryan Drewery2016-09-011-0/+25
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/projects/clang390-import/; revision=305239
* Completely revamp the way llvm, clang and lldb are built.Dimitry Andric2016-08-262-133/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Bootstrap llvm-tblgen and clang-tblgen with a minimal llvm static library, that has no other dependencies. * Roll up all separate llvm libraries into one big static libllvm. * Similar for all separate clang and lldb static libraries. * For all these libraries, generate their .inc files only once. * Link all llvm tools (including extra) against the big libllvm. * Link clang and clang-format against the big libllvm and libclang. * Link lldb against the big libllvm, libclang and liblldb. N.B.: This is work in progress, some details may still be missing. It also heavily depends on bsd.*.mk's support for SRCS and DPSRCS with relative pathnames, which apparently does not always work as expected. For building llvm, clang and lldb though, it seems to work just fine. The main idea behind this restructuring is maintainability and build peformance. The previous large number of very small libraries, each with their own generated files and dependencies was slow to traverse and hard to understand. Possible future improvements: * Only build certain targets, e.g. for most regular users having just one target will be fine. This will shave off some build time. * Building the big llvm, clang and lldb libraries as shared (private) libraries. * Adding other components from the LLVM project, such as lld. Notes: svn path=/projects/clang390-import/; revision=304867
* Update build glue for clang and the llvm/clang extras.Dimitry Andric2016-08-191-46/+32
| | | | Notes: svn path=/projects/clang390-import/; revision=304486
* DIRDEPS_BUILD: Update clang dependencies after r296417.Bryan Drewery2016-03-081-7/+7
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=296550
* Merge ^/head r295601 through r295844.Dimitry Andric2016-02-211-0/+80
|\ | | | | | | Notes: svn path=/projects/clang380-import/; revision=295845
| * DIRDEPS_BUILD: Hookup CLANG_EXTRAS.Bryan Drewery2016-02-161-0/+80
| | | | | | | | | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=295681
* | Some additional llvm tools need libz. While here, consistently useDimitry Andric2016-01-061-1/+1
| | | | | | | | | | | | | | LIBADD+=. Notes: svn path=/projects/clang380-import/; revision=293279
* | Next part of updating llvm/clang build glue: getting theDimitry Andric2015-12-311-8/+8
|/ | | | | | | WITH_CLANG_EXTRAS tools built. Notes: svn path=/projects/clang380-import/; revision=292990
* Fix LDADD/DPADD that should be LIBADD.Bryan Drewery2015-12-041-3/+2
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291738
* Update llvm/clang to r242221.Dimitry Andric2015-08-121-0/+1
| | | | Notes: svn path=/projects/clang-trunk/; revision=286684
* Update Makefiles and other build glue for llvm/clang 3.7.0, as of trunkDimitry Andric2015-05-301-2/+2
| | | | | | | r238337. Notes: svn path=/projects/clang-trunk/; revision=283770
* Update llvm and clang library and binary Makefiles for 3.6.0 rc1.Dimitry Andric2015-01-261-4/+4
| | | | Notes: svn path=/projects/clang360-import/; revision=277765
* Remove a few redundant DPADD/LDADD pairs in llvm utilities.Dimitry Andric2015-01-101-2/+0
| | | | Notes: svn path=/head/; revision=276944
* Add the AArch64 llvm backend to the build to allow for early testing andDimitry Andric2015-01-071-0/+7
| | | | | | | | | | | to ease any rework of how clang is built to take arm64 in to account. Submitted by: andrew Reviewed by: andrew, emaste Differential Revision: https://reviews.freebsd.org/D1446 Notes: svn path=/head/; revision=276783
* Update llvm and clang binary Makefiles.Dimitry Andric2014-11-241-5/+10
| | | | Notes: svn path=/projects/clang350-import/; revision=274974
* NO_MAN= has been deprecated in favor of MAN= for some time, go aheadWarner Losh2014-04-131-1/+1
| | | | | | | | | and finish the job. ncurses is now the only Makefile in the tree that uses it since it wasn't a simple mechanical change, and will be addressed in a future commit. Notes: svn path=/head/; revision=264400
* Add Makefile glue to build the Sparc backend libraries and link themDimitry Andric2014-02-201-0/+6
| | | | | | | into the clang executable. Notes: svn path=/projects/clang-sparc64/; revision=262263
* Upgrade our copy of llvm/clang to 3.4 release. This version supportsDimitry Andric2014-02-161-4/+3
| | | | | | | | | | | | | | | | | | | | all of the features in the current working draft of the upcoming C++ standard, provisionally named C++1y. The code generator's performance is greatly increased, and the loop auto-vectorizer is now enabled at -Os and -O2 in addition to -O3. The PowerPC backend has made several major improvements to code generation quality and compile time, and the X86, SPARC, ARM32, Aarch64 and SystemZ backends have all seen major feature work. Release notes for llvm and clang can be found here: <http://llvm.org/releases/3.4/docs/ReleaseNotes.html> <http://llvm.org/releases/3.4/tools/clang/docs/ReleaseNotes.html> MFC after: 1 month Notes: svn path=/head/; revision=261991
* Enable llvm's integrated assembler for PowerPC, since it should now beDimitry Andric2013-12-161-1/+2
| | | | | | | | | | good enough for typical usage. Requested by: rdivacky MFC after: 1 week Notes: svn path=/head/; revision=259473
* Upgrade our copy of llvm/clang to 3.3 release.Dimitry Andric2013-06-121-0/+2
| | | | | | | | | Release notes are still in the works, these will follow soon. MFC after: 1 month Notes: svn path=/head/; revision=251662
* Upgrade our copy of llvm/clang to trunk r178860, in preparation of theDimitry Andric2013-04-121-6/+9
| | | | | | | | | | | | upcoming 3.3 release (branching and freezing expected in a few weeks). Preliminary release notes can be found at the usual location: <http://llvm.org/docs/ReleaseNotes.html> An MFC is planned once the actual 3.3 release is finished. Notes: svn path=/head/; revision=249423
* Allow us to build clang for ARM EABI. Clang and llvm use theAndrew Turner2013-02-121-1/+3
| | | | | | | | | | arm-gnueabi-freebsd10.0 triple for EABI. Use this when we are on arm or armv6 and are building for EABI. Reviewed by: dim Notes: svn path=/head/; revision=246705
* Upgrade our copy of llvm/clang to r168974, from upstream's release_32Dimitry Andric2012-12-031-3/+3
| | | | | | | | branch. This is effectively llvm/clang 3.2 RC2; the 3.2 release is coming soon. Notes: svn path=/head/; revision=243830
* Upgrade our copy of llvm/clang to trunk r162107. With thanks toDimitry Andric2012-08-201-9/+11
| | | | | | | Benjamin Kramer and Joerg Sonnenberger for their input and fixes. Notes: svn path=/head/; revision=239462