• Home
  • Raw
  • Download

Lines Matching refs:streamer

946 static int getDataAlignmentFactor(MCStreamer &streamer) {  in getDataAlignmentFactor()  argument
947 MCContext &context = streamer.getContext(); in getDataAlignmentFactor()
956 static unsigned getSizeForEncoding(MCStreamer &streamer, in getSizeForEncoding() argument
958 MCContext &context = streamer.getContext(); in getSizeForEncoding()
977 static void EmitFDESymbol(MCStreamer &streamer, const MCSymbol &symbol, in EmitFDESymbol() argument
980 MCContext &context = streamer.getContext(); in EmitFDESymbol()
984 streamer); in EmitFDESymbol()
985 unsigned size = getSizeForEncoding(streamer, symbolEncoding); in EmitFDESymbol()
986 if (streamer.isVerboseAsm() && comment) streamer.AddComment(comment); in EmitFDESymbol()
988 streamer.EmitAbsValue(v, size); in EmitFDESymbol()
990 streamer.EmitValue(v, size); in EmitFDESymbol()
993 static void EmitPersonality(MCStreamer &streamer, const MCSymbol &symbol, in EmitPersonality() argument
995 MCContext &context = streamer.getContext(); in EmitPersonality()
999 streamer); in EmitPersonality()
1000 unsigned size = getSizeForEncoding(streamer, symbolEncoding); in EmitPersonality()
1001 streamer.EmitValue(v, size); in EmitPersonality()
1017 void EmitCompactUnwind(MCStreamer &streamer,
1020 const MCSymbol &EmitCIE(MCObjectStreamer &streamer,
1027 MCSymbol *EmitFDE(MCObjectStreamer &streamer,
1030 void EmitCFIInstructions(MCObjectStreamer &streamer,
1236 void FrameEmitterImpl::EmitCFIInstructions(MCObjectStreamer &streamer, in EmitCFIInstructions() argument
1249 if (streamer.isVerboseAsm()) streamer.AddComment("DW_CFA_advance_loc4"); in EmitCFIInstructions()
1250 streamer.EmitDwarfAdvanceFrameAddr(BaseLabel, ThisSym); in EmitCFIInstructions()
1255 EmitCFIInstruction(streamer, Instr); in EmitCFIInstructions()
1331 const MCSymbol &FrameEmitterImpl::EmitCIE(MCObjectStreamer &streamer, in EmitCIE() argument
1338 MCContext &context = streamer.getContext(); in EmitCIE()
1341 bool verboseAsm = streamer.isVerboseAsm(); in EmitCIE()
1344 streamer.EmitLabel(sectionStart); in EmitCIE()
1350 const MCExpr *Length = MakeStartMinusEndExpr(streamer, *sectionStart, in EmitCIE()
1352 if (verboseAsm) streamer.AddComment("CIE Length"); in EmitCIE()
1353 streamer.EmitAbsValue(Length, 4); in EmitCIE()
1357 if (verboseAsm) streamer.AddComment("CIE ID Tag"); in EmitCIE()
1358 streamer.EmitIntValue(CIE_ID, 4); in EmitCIE()
1361 if (verboseAsm) streamer.AddComment("DW_CIE_VERSION"); in EmitCIE()
1365 streamer.EmitIntValue(CIEVersion, 1); in EmitCIE()
1370 if (verboseAsm) streamer.AddComment("CIE Augmentation"); in EmitCIE()
1379 streamer.EmitBytes(Augmentation.str()); in EmitCIE()
1381 streamer.EmitIntValue(0, 1); in EmitCIE()
1384 if (verboseAsm) streamer.AddComment("CIE Code Alignment Factor"); in EmitCIE()
1385 streamer.EmitULEB128IntValue(context.getAsmInfo()->getMinInstAlignment()); in EmitCIE()
1388 if (verboseAsm) streamer.AddComment("CIE Data Alignment Factor"); in EmitCIE()
1389 streamer.EmitSLEB128IntValue(getDataAlignmentFactor(streamer)); in EmitCIE()
1392 if (verboseAsm) streamer.AddComment("CIE Return Address Column"); in EmitCIE()
1396 streamer.EmitIntValue(MRI->getDwarfRegNum(MRI->getRARegister(), true), 1); in EmitCIE()
1398 streamer.EmitULEB128IntValue( in EmitCIE()
1410 augmentationLength += getSizeForEncoding(streamer, personalityEncoding); in EmitCIE()
1417 if (verboseAsm) streamer.AddComment("Augmentation Size"); in EmitCIE()
1418 streamer.EmitULEB128IntValue(augmentationLength); in EmitCIE()
1423 EmitEncodingByte(streamer, personalityEncoding, in EmitCIE()
1426 if (verboseAsm) streamer.AddComment("Personality"); in EmitCIE()
1427 EmitPersonality(streamer, *personality, personalityEncoding); in EmitCIE()
1431 EmitEncodingByte(streamer, lsdaEncoding, "LSDA Encoding"); in EmitCIE()
1434 EmitEncodingByte(streamer, MOFI->getFDEEncoding(), "FDE Encoding"); in EmitCIE()
1443 EmitCFIInstructions(streamer, Instructions, nullptr); in EmitCIE()
1447 streamer.EmitValueToAlignment(IsEH ? 4 : MAI->getPointerSize()); in EmitCIE()
1449 streamer.EmitLabel(sectionEnd); in EmitCIE()
1453 MCSymbol *FrameEmitterImpl::EmitFDE(MCObjectStreamer &streamer, in EmitFDE() argument
1456 MCContext &context = streamer.getContext(); in EmitFDE()
1460 bool verboseAsm = streamer.isVerboseAsm(); in EmitFDE()
1463 const MCExpr *Length = MakeStartMinusEndExpr(streamer, *fdeStart, *fdeEnd, 0); in EmitFDE()
1464 if (verboseAsm) streamer.AddComment("FDE Length"); in EmitFDE()
1465 streamer.EmitAbsValue(Length, 4); in EmitFDE()
1467 streamer.EmitLabel(fdeStart); in EmitFDE()
1472 const MCExpr *offset = MakeStartMinusEndExpr(streamer, cieStart, *fdeStart, in EmitFDE()
1474 if (verboseAsm) streamer.AddComment("FDE CIE Offset"); in EmitFDE()
1475 streamer.EmitAbsValue(offset, 4); in EmitFDE()
1477 const MCExpr *offset = MakeStartMinusEndExpr(streamer, *SectionStart, in EmitFDE()
1479 streamer.EmitAbsValue(offset, 4); in EmitFDE()
1481 streamer.EmitSymbolValue(&cieStart, 4); in EmitFDE()
1487 unsigned PCSize = getSizeForEncoding(streamer, PCEncoding); in EmitFDE()
1488 EmitFDESymbol(streamer, *frame.Begin, PCEncoding, IsEH, "FDE initial location"); in EmitFDE()
1491 const MCExpr *Range = MakeStartMinusEndExpr(streamer, *frame.Begin, in EmitFDE()
1493 if (verboseAsm) streamer.AddComment("FDE address range"); in EmitFDE()
1494 streamer.EmitAbsValue(Range, PCSize); in EmitFDE()
1501 augmentationLength += getSizeForEncoding(streamer, frame.LsdaEncoding); in EmitFDE()
1503 if (verboseAsm) streamer.AddComment("Augmentation size"); in EmitFDE()
1504 streamer.EmitULEB128IntValue(augmentationLength); in EmitFDE()
1508 EmitFDESymbol(streamer, *frame.Lsda, frame.LsdaEncoding, true, in EmitFDE()
1513 EmitCFIInstructions(streamer, frame.Instructions, frame.Begin); in EmitFDE()
1516 streamer.EmitValueToAlignment(PCSize); in EmitFDE()