Skip to content

Commit 54f6fa0

Browse files
committed
Revert "Adapt to llvm/llvm-project#96785"
This reverts commit 0c0bd04.
1 parent e3c84e3 commit 54f6fa0

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/disasm.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,11 +1178,7 @@ class LineNumberPrinterHandler : public AsmPrinterHandler {
11781178
Buffer.clear();
11791179
}
11801180

1181-
#if JL_LLVM_VERSION >= 190000
1182-
virtual void setSymbolSize(const MCSymbol *Sym, uint64_t Size) {}
1183-
#else
11841181
virtual void setSymbolSize(const MCSymbol *Sym, uint64_t Size) override {}
1185-
#endif
11861182
//virtual void beginModule(Module *M) override {}
11871183
virtual void endModule() override {}
11881184
/// note that some AsmPrinter implementations may not call beginFunction at all
@@ -1201,19 +1197,11 @@ class LineNumberPrinterHandler : public AsmPrinterHandler {
12011197
//virtual void beginFunclet(const MachineBasicBlock &MBB,
12021198
// MCSymbol *Sym = nullptr) override {}
12031199
//virtual void endFunclet() override {}
1204-
#if JL_LLVM_VERSION >= 190000
1205-
virtual void beginInstruction(const MachineInstr *MI) {
1206-
#else
12071200
virtual void beginInstruction(const MachineInstr *MI) override {
1208-
#endif
12091201
LinePrinter.emitInstructionAnnot(MI->getDebugLoc(), Stream);
12101202
emitAndReset();
12111203
}
1212-
#if JL_LLVM_VERSION >= 190000
1213-
virtual void endInstruction() {}
1214-
#else
12151204
virtual void endInstruction() override {}
1216-
#endif
12171205
};
12181206

12191207
// get a native assembly for llvm::Function

0 commit comments

Comments
 (0)