[llvm-commits] [llvm] r108628 - /llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp

Bill Wendling isanbard at gmail.com
Sat Jul 17 12:18:44 PDT 2010


Author: void
Date: Sat Jul 17 14:18:44 2010
New Revision: 108628

URL: http://llvm.org/viewvc/llvm-project?rev=108628&view=rev
Log:
Use isPrologLabel() instead of checking the opcode directly.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp?rev=108628&r1=108627&r2=108628&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp Sat Jul 17 14:18:44 2010
@@ -661,7 +661,7 @@
   // 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





More information about the llvm-commits mailing list