[lld] Allow Arm PC-relative relocations in pic or shared library (PR #77304)

Peter Smith via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 8 09:24:11 PST 2024


================
@@ -504,8 +504,7 @@ int64_t RelocationScanner::computeMipsAddend(const RelTy &rel, RelExpr expr,
 }
 
 // Custom error message if Sym is defined in a discarded section.
-template <class ELFT>
-static std::string maybeReportDiscarded(Undefined &sym) {
+template <class ELFT> static std::string maybeReportDiscarded(Undefined &sym) {
----------------
smithp35 wrote:

Looks like some clang-format changes to unchanged code have made it into the patch. If these are still worth doing can you split these up into a separate [NFC] change mentioning clang-format

https://github.com/llvm/llvm-project/pull/77304


More information about the llvm-commits mailing list