mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-30 17:25:21 +00:00
Preliminary patch to improve dwarf EH generation - Hooks to return Personality / FDE / LSDA / TType encoding depending on target / options (e.g. code model / relocation model) - MCIzation of Dwarf EH printer to use encoding information - Stub generation for ELF target (needed for indirect references) - Some other small changes here and there
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96285 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -22,7 +22,7 @@ using namespace llvm;
|
||||
|
||||
// Out of line virtual method.
|
||||
void MachineModuleInfoMachO::Anchor() {}
|
||||
|
||||
void MachineModuleInfoELF::Anchor() {}
|
||||
|
||||
static int SortSymbolPair(const void *LHS, const void *RHS) {
|
||||
const MCSymbol *LHSS =
|
||||
@@ -34,10 +34,11 @@ static int SortSymbolPair(const void *LHS, const void *RHS) {
|
||||
|
||||
/// GetSortedStubs - Return the entries from a DenseMap in a deterministic
|
||||
/// sorted orer.
|
||||
MachineModuleInfoMachO::SymbolListTy
|
||||
MachineModuleInfoMachO::GetSortedStubs(const DenseMap<MCSymbol*,
|
||||
MCSymbol*> &Map) {
|
||||
MachineModuleInfoMachO::SymbolListTy List(Map.begin(), Map.end());
|
||||
MachineModuleInfoImpl::SymbolListTy
|
||||
MachineModuleInfoImpl::GetSortedStubs(const DenseMap<MCSymbol*,
|
||||
MCSymbol*> &Map) {
|
||||
MachineModuleInfoImpl::SymbolListTy List(Map.begin(), Map.end());
|
||||
|
||||
if (!List.empty())
|
||||
qsort(&List[0], List.size(), sizeof(List[0]), SortSymbolPair);
|
||||
return List;
|
||||
|
Reference in New Issue
Block a user