summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2010-07-17 19:18:44 +0000
committerBill Wendling <isanbard@gmail.com>2010-07-17 19:18:44 +0000
commitac67e99d53de65664a819fa3ad1a96ca6611e68c (patch)
tree569d4511d9d94292cdf11c30f98865e269f68b2f
parentaea8e1e3d2a8f6481a36a136cdbaa0079e200d99 (diff)
downloadbcm5719-llvm-ac67e99d53de65664a819fa3ad1a96ca6611e68c.tar.gz
bcm5719-llvm-ac67e99d53de65664a819fa3ad1a96ca6611e68c.zip
Use isPrologLabel() instead of checking the opcode directly.
llvm-svn: 108628
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 942b53a92dd..77d6ba14179 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
OpenPOWER on IntegriCloud