unsigned lsdaEncoding) {
MCContext &context = streamer.getContext();
const TargetAsmInfo &asmInfo = context.getTargetAsmInfo();
- const MCSection §ion = *asmInfo.getEHFrameSection();
- streamer.SwitchSection(§ion);
MCSymbol *sectionStart;
if (asmInfo.isFunctionEHFrameSymbolPrivate())
// Personality
augmentationLength += getSizeForEncoding(streamer, personalityEncoding);
}
- if (lsda) {
+ if (lsda)
augmentationLength += 1;
- }
// Encoding of the FDE pointers
augmentationLength += 1;
// Personality
EmitPersonality(streamer, *personality, personalityEncoding);
}
- if (lsda) {
- // LSDA Encoding
- streamer.EmitIntValue(lsdaEncoding, 1);
- }
+ if (lsda)
+ streamer.EmitIntValue(lsdaEncoding, 1); // LSDA Encoding
// Encoding of the FDE pointers
streamer.EmitIntValue(asmInfo.getFDEEncoding(UsingCFI), 1);
bool usingCFI) {
const MCContext &context = streamer.getContext();
const TargetAsmInfo &asmInfo = context.getTargetAsmInfo();
+ const MCSection §ion = *asmInfo.getEHFrameSection();
+ streamer.SwitchSection(§ion);
MCSymbol *fdeEnd = NULL;
DenseMap<CIEKey, const MCSymbol*> CIEStarts;