Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Zentrik committed Aug 31, 2024
1 parent 78165c8 commit 0c0bd04
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/disasm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,7 @@ class LineNumberPrinterHandler : public AsmPrinterHandler {
Buffer.clear();
}

virtual void setSymbolSize(const MCSymbol *Sym, uint64_t Size) override {}
virtual void setSymbolSize(const MCSymbol *Sym, uint64_t Size) {}
//virtual void beginModule(Module *M) override {}
virtual void endModule() override {}
/// note that some AsmPrinter implementations may not call beginFunction at all
Expand All @@ -1191,11 +1191,11 @@ class LineNumberPrinterHandler : public AsmPrinterHandler {
//virtual void beginFunclet(const MachineBasicBlock &MBB,
// MCSymbol *Sym = nullptr) override {}
//virtual void endFunclet() override {}
virtual void beginInstruction(const MachineInstr *MI) override {
virtual void beginInstruction(const MachineInstr *MI) {
LinePrinter.emitInstructionAnnot(MI->getDebugLoc(), Stream);
emitAndReset();
}
virtual void endInstruction() override {}
virtual void endInstruction() {}
};

// get a native assembly for llvm::Function
Expand Down

0 comments on commit 0c0bd04

Please sign in to comment.