Skip to content

Commit 24cb568

Browse files
committed
Fix build
1 parent 2c4aed1 commit 24cb568

File tree

3 files changed

+1
-21
lines changed

3 files changed

+1
-21
lines changed

llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ bool AsmPrinter::doInitialization(Module &M) {
632632

633633
if (EnableMonoEH) {
634634
MonoException *mono_eh = new MonoException (this, DisableGNUEH);
635-
Handlers.push_back(HandlerInfo(std::unique_ptr<MonoException> (mono_eh), EHTimerName, EHTimerDescription, DWARFGroupName, DWARFGroupDescription));
635+
Handlers.push_back(std::unique_ptr<MonoException> (mono_eh));
636636
}
637637

638638
return false;

llvm/lib/CodeGen/AsmPrinter/MonoException.cpp

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -652,22 +652,3 @@ MonoException::endModule()
652652
streamer.emitLabel(tableEndSym);
653653
Asm->emitAlignment(llvm::Align(8));
654654
}
655-
656-
void
657-
MonoException::beginInstruction(const MachineInstr *MI)
658-
{
659-
if (MI->getOpcode() == TargetOpcode::CFI_INSTRUCTION) {
660-
unsigned CFIIndex = MI->getOperand(0).getCFIIndex();
661-
662-
//outs () << "D: " << CFIIndex << " " << EHLabels.size() << "\n";
663-
664-
/* Emit a label and save the label-cfi index association */
665-
if (CFIIndex != EHLabels.size())
666-
assert (0);
667-
668-
MCSymbol *Label = Asm->OutContext.createTempSymbol();
669-
Asm->OutStreamer->emitLabel(Label);
670-
671-
EHLabels.push_back(Label);
672-
}
673-
}

llvm/lib/CodeGen/AsmPrinter/MonoException.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ class MonoException : public EHStreamer {
2828

2929
void endFunction(const MachineFunction *) override;
3030

31-
void beginInstruction(const MachineInstr *MI) override;
3231
private:
3332

3433
struct MonoCallSiteEntry {

0 commit comments

Comments
 (0)