26void MachineModuleInfoMachO::anchor() {}
27void MachineModuleInfoELF::anchor() {}
28void MachineModuleInfoCOFF::anchor() {}
29void MachineModuleInfoWasm::anchor() {}
31using PairTy = std::pair<MCSymbol *, MachineModuleInfoImpl::StubValueTy>;
46template <
typename MachineModuleInfoTarget>
50 typename MachineModuleInfoTarget::AuthStubListTy
List(AuthPtrStubs.
begin(),
55 [](
const typename MachineModuleInfoTarget::AuthStubPairTy &
LHS,
56 const typename MachineModuleInfoTarget::AuthStubPairTy &
RHS) {
57 return LHS.first->getName() < RHS.first->getName();
65 return getAuthGVStubListHelper<MachineModuleInfoELF>(AuthPtrStubs);
This file defines the DenseMap class.
static int SortSymbolPair(const PairTy *LHS, const PairTy *RHS)
std::pair< MCSymbol *, MachineModuleInfoImpl::StubValueTy > PairTy
static MachineModuleInfoTarget::AuthStubListTy getAuthGVStubListHelper(DenseMap< MCSymbol *, typename MachineModuleInfoTarget::AuthStubInfo > &AuthPtrStubs)
AuthStubListTy getAuthGVStubList()
std::vector< AuthStubPairTy > AuthStubListTy
std::vector< std::pair< MCSymbol *, StubValueTy > > SymbolListTy
static SymbolListTy getSortedStubs(DenseMap< MCSymbol *, StubValueTy > &)
Return the entries from a DenseMap in a deterministic sorted orer.
int compare(StringRef RHS) const
compare - Compare two strings; the result is negative, zero, or positive if this string is lexicograp...
StringRef getName() const
Return a constant reference to the value's name.
This is an optimization pass for GlobalISel generic memory operations.
void sort(IteratorTy Start, IteratorTy End)
void array_pod_sort(IteratorTy Start, IteratorTy End)
array_pod_sort - This sorts an array with the specified start and end extent.