[llvm] [AArch64] emitAddress: Handle signed GOT. (PR #172926)
Harald van Dijk via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 30 11:12:17 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()) {
----------------
hvdijk wrote:
I did look at that. Most of the suitable header files look like they're meant specifically for one class and it wouldn't be right to add random utility functions there. Turning it into a member function of some class also didn't work out, since it can't be in `AArch64FunctionInfo` since we need to be able to access it when we're not processing any function, and it shouldn't be in `AArch64Subtarget` since it's useful to be able to access it before we've created a `AArch64Subtarget`. But looking again for somewhere to put it as a freestanding function one that is justifiable is `AArch64PointerAuth.h` so I've done that now, thanks.
https://github.com/llvm/llvm-project/pull/172926
More information about the llvm-commits
mailing list