[llvm] [AArch64] emitAddress: Handle signed GOT. (PR #172926)

Daniil Kovalev via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 30 07:38:21 PST 2025


================
@@ -108,6 +109,21 @@ class AArch64AsmPrinter : public AsmPrinter {
 
   StringRef getPassName() const override { return "AArch64 Assembly Printer"; }
 
+  bool doInitialization(Module &M) override {
+    if (AsmPrinter::doInitialization(M))
+      return true;
+
+    if (TM.getTargetTriple().isOSBinFormatELF()) {
----------------
kovdan01 wrote:

Nit: AArch64MachineFunctionInfo.cpp contains `hasELFSignedGOTHelper`, and it might be worth moving that helper somewhere so it can be accessed both from there and from here.

Feel free to ignore

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


More information about the llvm-commits mailing list