mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-31 08:16:47 +00:00 
			
		
		
		
	Cosmetic changes per EH patch review feedback.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49096 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		| @@ -3415,7 +3415,7 @@ public: | |||||||
|   void BeginFunction(MachineFunction *MF) { |   void BeginFunction(MachineFunction *MF) { | ||||||
|     this->MF = MF; |     this->MF = MF; | ||||||
|     shouldEmitTable = shouldEmitMoves = false; |     shouldEmitTable = shouldEmitMoves = false; | ||||||
|     if (TAI->doesSupportExceptionHandling()) { |     if (MMI && TAI->doesSupportExceptionHandling()) { | ||||||
|  |  | ||||||
|       // Map all labels and get rid of any dead landing pads. |       // Map all labels and get rid of any dead landing pads. | ||||||
|       MMI->TidyLandingPads(); |       MMI->TidyLandingPads(); | ||||||
|   | |||||||
| @@ -947,7 +947,7 @@ PPCRegisterInfo::emitPrologue(MachineFunction &MF) const { | |||||||
|   MachineBasicBlock::iterator MBBI = MBB.begin(); |   MachineBasicBlock::iterator MBBI = MBB.begin(); | ||||||
|   MachineFrameInfo *MFI = MF.getFrameInfo(); |   MachineFrameInfo *MFI = MF.getFrameInfo(); | ||||||
|   MachineModuleInfo *MMI = MFI->getMachineModuleInfo(); |   MachineModuleInfo *MMI = MFI->getMachineModuleInfo(); | ||||||
|   bool needsFrameInfo = (MMI && MMI->hasDebugInfo()) || |   bool needsFrameMoves = (MMI && MMI->hasDebugInfo()) || | ||||||
|        !MF.getFunction()->doesNotThrow(); |        !MF.getFunction()->doesNotThrow(); | ||||||
|    |    | ||||||
|   // Prepare for frame info. |   // Prepare for frame info. | ||||||
| @@ -1022,7 +1022,7 @@ PPCRegisterInfo::emitPrologue(MachineFunction &MF) const { | |||||||
|   unsigned TargetAlign = MF.getTarget().getFrameInfo()->getStackAlignment(); |   unsigned TargetAlign = MF.getTarget().getFrameInfo()->getStackAlignment(); | ||||||
|   unsigned MaxAlign = MFI->getMaxAlignment(); |   unsigned MaxAlign = MFI->getMaxAlignment(); | ||||||
|  |  | ||||||
|   if (needsFrameInfo) { |   if (needsFrameMoves) { | ||||||
|     // Mark effective beginning of when frame pointer becomes valid. |     // Mark effective beginning of when frame pointer becomes valid. | ||||||
|     FrameLabelId = MMI->NextLabelID(); |     FrameLabelId = MMI->NextLabelID(); | ||||||
|     BuildMI(MBB, MBBI, TII.get(PPC::LABEL)).addImm(FrameLabelId).addImm(0); |     BuildMI(MBB, MBBI, TII.get(PPC::LABEL)).addImm(FrameLabelId).addImm(0); | ||||||
| @@ -1098,7 +1098,7 @@ PPCRegisterInfo::emitPrologue(MachineFunction &MF) const { | |||||||
|     } |     } | ||||||
|   } |   } | ||||||
|    |    | ||||||
|   if (needsFrameInfo) { |   if (needsFrameMoves) { | ||||||
|     std::vector<MachineMove> &Moves = MMI->getFrameMoves(); |     std::vector<MachineMove> &Moves = MMI->getFrameMoves(); | ||||||
|      |      | ||||||
|     if (NegFrameSize) { |     if (NegFrameSize) { | ||||||
|   | |||||||
| @@ -504,7 +504,7 @@ void X86RegisterInfo::emitPrologue(MachineFunction &MF) const { | |||||||
|   MachineModuleInfo *MMI = MFI->getMachineModuleInfo(); |   MachineModuleInfo *MMI = MFI->getMachineModuleInfo(); | ||||||
|   X86MachineFunctionInfo *X86FI = MF.getInfo<X86MachineFunctionInfo>(); |   X86MachineFunctionInfo *X86FI = MF.getInfo<X86MachineFunctionInfo>(); | ||||||
|   MachineBasicBlock::iterator MBBI = MBB.begin(); |   MachineBasicBlock::iterator MBBI = MBB.begin(); | ||||||
|   bool needsFrameInfo = (MMI && MMI->hasDebugInfo()) || !Fn->doesNotThrow(); |   bool needsFrameMoves = (MMI && MMI->hasDebugInfo()) || !Fn->doesNotThrow(); | ||||||
|    |    | ||||||
|   // Prepare for frame info. |   // Prepare for frame info. | ||||||
|   unsigned FrameLabelId = 0; |   unsigned FrameLabelId = 0; | ||||||
| @@ -537,7 +537,7 @@ void X86RegisterInfo::emitPrologue(MachineFunction &MF) const { | |||||||
|       .addReg(FramePtr); |       .addReg(FramePtr); | ||||||
|     NumBytes -= SlotSize; |     NumBytes -= SlotSize; | ||||||
|  |  | ||||||
|     if (needsFrameInfo) { |     if (needsFrameMoves) { | ||||||
|       // Mark effective beginning of when frame pointer becomes valid. |       // Mark effective beginning of when frame pointer becomes valid. | ||||||
|       FrameLabelId = MMI->NextLabelID(); |       FrameLabelId = MMI->NextLabelID(); | ||||||
|       BuildMI(MBB, MBBI, TII.get(X86::LABEL)).addImm(FrameLabelId).addImm(0); |       BuildMI(MBB, MBBI, TII.get(X86::LABEL)).addImm(FrameLabelId).addImm(0); | ||||||
| @@ -549,7 +549,7 @@ void X86RegisterInfo::emitPrologue(MachineFunction &MF) const { | |||||||
|   } |   } | ||||||
|    |    | ||||||
|   unsigned ReadyLabelId = 0; |   unsigned ReadyLabelId = 0; | ||||||
|   if (needsFrameInfo) { |   if (needsFrameMoves) { | ||||||
|     // Mark effective beginning of when frame pointer is ready. |     // Mark effective beginning of when frame pointer is ready. | ||||||
|     ReadyLabelId = MMI->NextLabelID(); |     ReadyLabelId = MMI->NextLabelID(); | ||||||
|     BuildMI(MBB, MBBI, TII.get(X86::LABEL)).addImm(ReadyLabelId).addImm(0); |     BuildMI(MBB, MBBI, TII.get(X86::LABEL)).addImm(ReadyLabelId).addImm(0); | ||||||
| @@ -608,7 +608,7 @@ void X86RegisterInfo::emitPrologue(MachineFunction &MF) const { | |||||||
|     } |     } | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   if (needsFrameInfo) { |   if (needsFrameMoves) { | ||||||
|     std::vector<MachineMove> &Moves = MMI->getFrameMoves(); |     std::vector<MachineMove> &Moves = MMI->getFrameMoves(); | ||||||
|     const TargetData *TD = MF.getTarget().getTargetData(); |     const TargetData *TD = MF.getTarget().getTargetData(); | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user