summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
diff options
context:
space:
mode:
authorCharles Davis <cdavis@mines.edu>2011-05-28 04:21:04 +0000
committerCharles Davis <cdavis@mines.edu>2011-05-28 04:21:04 +0000
commit5638b9f01e145c9dfbf96698bc6d05a38358595d (patch)
treeabaaf5df9126173768c6f26b7697f2c8e589f786 /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
parentfe73374d7a8d754cc5a1b0a26a277fb212ff01e4 (diff)
downloadbcm5719-llvm-5638b9f01e145c9dfbf96698bc6d05a38358595d.tar.gz
bcm5719-llvm-5638b9f01e145c9dfbf96698bc6d05a38358595d.zip
When generating code for Win64 EH, emit StartProc and EndProc directives.
llvm-svn: 132250
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index dee6e532262..81782ea4367 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -604,6 +604,11 @@ AsmPrinter::CFIMoveType AsmPrinter::needsCFIMoves() {
return CFI_M_None;
}
+bool AsmPrinter::needsSEHMoves() {
+ return MAI->getExceptionHandlingType() == ExceptionHandling::Win64 &&
+ MF->getFunction()->needsUnwindTableEntry();
+}
+
void AsmPrinter::emitPrologLabel(const MachineInstr &MI) {
MCSymbol *Label = MI.getOperand(0).getMCSymbol();
OpenPOWER on IntegriCloud