about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/SymbolWrapper.cpp
AgeCommit message (Collapse)AuthorLines
2024-11-04Trim and tidy includes in `rustc_llvm`Zalathar-2/+2
2024-09-18Update the minimum external LLVM to 18Josh Stone-2/+0
2024-08-14Fix null pointer dereference when a file is not an object filebjorn3-0/+3
2024-08-14Use toString instead of raw_svector_ostream for error messagesbjorn3-9/+2
2024-07-07Fix review commentsbjorn3-0/+5
2024-07-07Fix building on LLVM 17bjorn3-0/+3
2024-07-07Sync ar_archive_writer to LLVM 18.1.3bjorn3-31/+97
From LLVM 15.0.0-rc3. This adds support for COFF archives containing Arm64EC object files and has various fixes for AIX big archive files.
2024-06-26Format C++ files in `llvm-wrapper`DianQK-11/+12
2024-03-05Explicitly assign constructed C++ classesJubilee Young-4/+5
C++ style guides I am aware of recommend specifically preferring = syntax for any classes with fairly obvious constructors[^0] that do not perform any complicated logic in their constructor. I contend that all constructors that the `rustc_llvm` code uses qualify. This has only become more common since C++ 17 guaranteed many cases of copy initialization elision. The other detail is that I tried to ask another contributor with infinitely more C++ experience than me (i.e. any) what this constructor syntax was, and they thought it was a macro. I know of no other language that has adopted this same syntax. As the rustc codebase features many contributors experienced in many other languages, using a less... unique... style has many other benefits in making this code more lucid and maintainable, which is something it direly needs. [^0]: e.g. https://abseil.io/tips/88
2023-11-22suppress warnings on msvcArlie Davis-0/+1
2023-07-14llvm-wrapper: update for LLVM API changeKrasimir Georgiev-0/+1
No functional changes intended. Adds an include for llvm::SmallString. Previously, this must have been implicitly provided by some of the existing headers. With recent LLVM changes, not anymore: https://buildkite.com/llvm-project/rust-llvm-integrate-prototype/builds/20776#01895448-44a4-4a1e-8407-9d41d0186132/209-690
2023-03-07Remove an extraneous includeKazu Hirata-1/+0
SymbolWrapper.cpp doesn't use std::optional or llvm::Optional, so this patch removes the extraneous include. Note that llvm/ADT/Optional.h has been deprecated upstream. This patch ensures that SymbolWrapper.cpp continues to compile even after the upcoming removal of Optional.h.
2022-11-26Use LLVM for getting symbols from COFF bigobj filesbjorn3-10/+24
2022-11-26Rewrite LLVM's archive writer in Rustbjorn3-0/+82
This allows it to be used by other codegen backends