[llvm] [AArch64][PAC] Lower ptrauth constants in code for MachO. (PR #97665)

Ahmed Bougacha via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 10 14:53:13 PDT 2024


================
@@ -43,24 +43,19 @@ MachineModuleInfoImpl::SymbolListTy MachineModuleInfoImpl::getSortedStubs(
   return List;
 }
 
-template <typename MachineModuleInfoTarget>
-static typename MachineModuleInfoTarget::AuthStubListTy getAuthGVStubListHelper(
-    DenseMap<MCSymbol *, typename MachineModuleInfoTarget::AuthStubInfo>
-        &AuthPtrStubs) {
-  typename MachineModuleInfoTarget::AuthStubListTy List(AuthPtrStubs.begin(),
-                                                        AuthPtrStubs.end());
+using ExprStubPairTy = std::pair<MCSymbol *, const MCExpr *>;
+static int SortAuthStubPair(const ExprStubPairTy *LHS,
----------------
ahmedbougacha wrote:

Yeah, the ordering doesn't matter as long as it's stable;  I added another extern_weak as the barest of sanity checks.

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


More information about the llvm-commits mailing list