Skip to content

Commit 743e2d8

Browse files
committed
Fix MonoExceptionDebugHandler
Override few more base methods to avoid crashes. We only need it to call beginInstruction.
1 parent e619541 commit 743e2d8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/CodeGen/AsmPrinter/MonoException.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,11 @@ class MonoExceptionDebugHandler : public DebugHandlerBase {
8585
MonoExceptionDebugHandler(AsmPrinter *A, MonoException* ME);
8686

8787
void beginInstruction(const MachineInstr *MI) override;
88+
void endInstruction() override {}
8889

8990
void beginFunctionImpl(const MachineFunction *MF) override {}
9091
void endFunctionImpl(const MachineFunction *MF) override {}
92+
void beginModule(Module *M) override {}
9193
void endModule() override {}
9294

9395
private:

0 commit comments

Comments
 (0)