@@ -7375,8 +7375,7 @@ void SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I,
73757375 case Intrinsic::codeview_annotation: {
73767376 // Emit a label associated with this metadata.
73777377 MachineFunction &MF = DAG.getMachineFunction ();
7378- MCSymbol *Label =
7379- MF.getMMI ().getContext ().createTempSymbol (" annotation" , true );
7378+ MCSymbol *Label = MF.getContext ().createTempSymbol (" annotation" , true );
73807379 Metadata *MD = cast<MetadataAsValue>(I.getArgOperand (0 ))->getMetadata ();
73817380 MF.addCodeViewAnnotation (Label, cast<MDNode>(MD));
73827381 Res = DAG.getLabelNode (ISD::ANNOTATION_LABEL, sdl, getRoot (), Label);
@@ -7644,9 +7643,8 @@ void SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I,
76447643 assert (FuncInfo.StaticAllocaMap .count (Slot) &&
76457644 " can only escape static allocas" );
76467645 int FI = FuncInfo.StaticAllocaMap [Slot];
7647- MCSymbol *FrameAllocSym =
7648- MF.getMMI ().getContext ().getOrCreateFrameAllocSymbol (
7649- GlobalValue::dropLLVMManglingEscape (MF.getName ()), Idx);
7646+ MCSymbol *FrameAllocSym = MF.getContext ().getOrCreateFrameAllocSymbol (
7647+ GlobalValue::dropLLVMManglingEscape (MF.getName ()), Idx);
76507648 BuildMI (*FuncInfo.MBB , FuncInfo.InsertPt , dl,
76517649 TII->get (TargetOpcode::LOCAL_ESCAPE))
76527650 .addSym (FrameAllocSym)
@@ -7665,9 +7663,8 @@ void SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I,
76657663 auto *Idx = cast<ConstantInt>(I.getArgOperand (2 ));
76667664 unsigned IdxVal =
76677665 unsigned (Idx->getLimitedValue (std::numeric_limits<int >::max ()));
7668- MCSymbol *FrameAllocSym =
7669- MF.getMMI ().getContext ().getOrCreateFrameAllocSymbol (
7670- GlobalValue::dropLLVMManglingEscape (Fn->getName ()), IdxVal);
7666+ MCSymbol *FrameAllocSym = MF.getContext ().getOrCreateFrameAllocSymbol (
7667+ GlobalValue::dropLLVMManglingEscape (Fn->getName ()), IdxVal);
76717668
76727669 Value *FP = I.getArgOperand (1 );
76737670 SDValue FPVal = getValue (FP);
@@ -8626,7 +8623,7 @@ SDValue SelectionDAGBuilder::lowerStartEH(SDValue Chain,
86268623
86278624 // Insert a label before the invoke call to mark the try range. This can be
86288625 // used to detect deletion of the invoke via the MachineModuleInfo.
8629- BeginLabel = MMI .getContext ().createTempSymbol ();
8626+ BeginLabel = MF .getContext ().createTempSymbol ();
86308627
86318628 // For SjLj, keep track of which landing pads go with which invokes
86328629 // so as to maintain the ordering of pads in the LSDA.
@@ -8648,11 +8645,10 @@ SDValue SelectionDAGBuilder::lowerEndEH(SDValue Chain, const InvokeInst *II,
86488645 assert (BeginLabel && " BeginLabel should've been set" );
86498646
86508647 MachineFunction &MF = DAG.getMachineFunction ();
8651- MachineModuleInfo &MMI = MF.getMMI ();
86528648
86538649 // Insert a label at the end of the invoke call to mark the try range. This
86548650 // can be used to detect deletion of the invoke via the MachineModuleInfo.
8655- MCSymbol *EndLabel = MMI .getContext ().createTempSymbol ();
8651+ MCSymbol *EndLabel = MF .getContext ().createTempSymbol ();
86568652 Chain = DAG.getEHLabel (getCurSDLoc (), Chain, EndLabel);
86578653
86588654 // Inform MachineModuleInfo of range.
0 commit comments