[llvm] [AArch64][PAC] Lower ptrauth constants in code for MachO. (PR #97665)
Daniil Kovalev via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 4 01:55:48 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,
----------------
kovdan01 wrote:
It's probably worth adding a test which checks that stubs are sorted. I'm OK with merging this "as is" and implementing new tests as a separate patch later.
https://github.com/llvm/llvm-project/pull/97665
More information about the llvm-commits
mailing list