Skip to content

Commit

Permalink
Revert "Adapt to llvm/llvm-project#96785"
Browse files Browse the repository at this point in the history
This reverts commit 0c0bd04.
  • Loading branch information
Zentrik committed Oct 12, 2024
1 parent e3c84e3 commit 54f6fa0
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/disasm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1178,11 +1178,7 @@ class LineNumberPrinterHandler : public AsmPrinterHandler {
Buffer.clear();
}

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

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

0 comments on commit 54f6fa0

Please sign in to comment.