Use isPrologLabel() instead of checking the opcode directly.
llvm-svn: 108628
This commit is contained in:
		
							parent
							
								
									aea8e1e3d2
								
							
						
					
					
						commit
						ac67e99d53
					
				| 
						 | 
					@ -661,7 +661,7 @@ void AsmPrinter::EmitFunctionBody() {
 | 
				
			||||||
  // label equaling the end of function label and an invalid "row" in the
 | 
					  // label equaling the end of function label and an invalid "row" in the
 | 
				
			||||||
  // FDE. We need to emit a noop in this situation so that the FDE's rows are
 | 
					  // FDE. We need to emit a noop in this situation so that the FDE's rows are
 | 
				
			||||||
  // valid.
 | 
					  // valid.
 | 
				
			||||||
  bool RequiresNoop = LastMI && LastMI->getOpcode()==TargetOpcode::PROLOG_LABEL;
 | 
					  bool RequiresNoop = LastMI && LastMI->isPrologLabel();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // If the function is empty and the object file uses .subsections_via_symbols,
 | 
					  // If the function is empty and the object file uses .subsections_via_symbols,
 | 
				
			||||||
  // then we need to emit *something* to the function body to prevent the
 | 
					  // then we need to emit *something* to the function body to prevent the
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue