aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp18
1 files changed, 1 insertions, 17 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index c3e0573..1d148cd 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -1584,7 +1584,6 @@ void AsmPrinter::emitFunctionBody() {
// Print out code for the function.
bool HasAnyRealCode = false;
int NumInstsInFunction = 0;
- bool IsEHa = MMI->getModule()->getModuleFlag("eh-asynch");
bool CanDoExtraAnalysis = ORE->allowExtraAnalysis(DEBUG_TYPE);
for (auto &MBB : *MF) {
@@ -1623,24 +1622,9 @@ void AsmPrinter::emitFunctionBody() {
emitFrameAlloc(MI);
break;
case TargetOpcode::ANNOTATION_LABEL:
- case TargetOpcode::GC_LABEL:
- OutStreamer->emitLabel(MI.getOperand(0).getMCSymbol());
- break;
case TargetOpcode::EH_LABEL:
+ case TargetOpcode::GC_LABEL:
OutStreamer->emitLabel(MI.getOperand(0).getMCSymbol());
- // For AsynchEH, insert a Nop if followed by a trap inst
- // Or the exception won't be caught.
- // (see MCConstantExpr::create(1,..) in WinException.cpp)
- // Ignore SDiv/UDiv because a DIV with Const-0 divisor
- // must have being turned into an UndefValue.
- // Div with variable opnds won't be the first instruction in
- // an EH region as it must be led by at least a Load
- {
- auto MI2 = std::next(MI.getIterator());
- if (IsEHa && MI2 != MBB.end() &&
- (MI2->mayLoadOrStore() || MI2->mayRaiseFPException()))
- emitNops(1);
- }
break;
case TargetOpcode::INLINEASM:
case TargetOpcode::INLINEASM_BR: