Changeset View
Changeset View
Standalone View
Standalone View
lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
Show First 20 Lines • Show All 1,133 Lines • ▼ Show 20 Lines | if (FnSecName != ".text") { | ||||
EHSecName += FnSecName; | EHSecName += FnSecName; | ||||
} | } | ||||
// Get .ARM.extab or .ARM.exidx section | // Get .ARM.extab or .ARM.exidx section | ||||
const MCSymbolELF *Group = FnSection.getGroup(); | const MCSymbolELF *Group = FnSection.getGroup(); | ||||
if (Group) | if (Group) | ||||
Flags |= ELF::SHF_GROUP; | Flags |= ELF::SHF_GROUP; | ||||
MCSectionELF *EHSection = getContext().getELFSection( | MCSectionELF *EHSection = getContext().getELFSection( | ||||
EHSecName, Type, Flags, 0, Group, FnSection.getUniqueID(), &FnSection); | EHSecName, Type, Flags, 0, Group, FnSection.getUniqueID(), | ||||
dyn_cast<MCSymbolELF>(&Fn)); | |||||
assert(EHSection && "Failed to get the required EH section"); | assert(EHSection && "Failed to get the required EH section"); | ||||
// Switch to .ARM.extab or .ARM.exidx section | // Switch to .ARM.extab or .ARM.exidx section | ||||
SwitchSection(EHSection); | SwitchSection(EHSection); | ||||
EmitCodeAlignment(4); | EmitCodeAlignment(4); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 296 Lines • Show Last 20 Lines |