summaryrefslogtreecommitdiff
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
commit7490896f9dd4bb7955b39fa601ae7a9325e2775f (patch)
treef16e802cacfbe974ed5f2316b8ce6cfe00f02d47
parent89a902e1c2a6e47c181e584c2c6c931a8dd37155 (diff)
downloadllvm-7490896f9dd4bb7955b39fa601ae7a9325e2775f.tar.gz
llvm-7490896f9dd4bb7955b39fa601ae7a9325e2775f.tar.bz2
llvm-7490896f9dd4bb7955b39fa601ae7a9325e2775f.tar.xz
Use isPrologLabel() instead of checking the opcode directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108628 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/AsmPrinter/AsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 942b53a92d..77d6ba1417 100644
--- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/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