Use isPrologLabel() instead of checking the opcode directly.
authorBill Wendling <isanbard@gmail.com>
Sat, 17 Jul 2010 19:18:44 +0000 (19:18 +0000)
committerBill Wendling <isanbard@gmail.com>
Sat, 17 Jul 2010 19:18:44 +0000 (19:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108628 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/AsmPrinter.cpp

index 942b53a92dd24f8ad544f64a1c0b188bec50de9f..77d6ba14179c33246f113ed926f15d2e3bacda07 100644 (file)
@@ -661,7 +661,7 @@ void AsmPrinter::EmitFunctionBody() {
   // 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
   // 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,
   // then we need to emit *something* to the function body to prevent the