From ac67e99d53de65664a819fa3ad1a96ca6611e68c Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Sat, 17 Jul 2010 19:18:44 +0000 Subject: [PATCH] Use isPrologLabel() instead of checking the opcode directly. llvm-svn: 108628 --- llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 942b53a92dd2..77d6ba14179c 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -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