Skip to content

Commit

Permalink
Revert "Adapt to llvm/llvm-project#97046"
Browse files Browse the repository at this point in the history
This reverts commit 1b7d587.
  • Loading branch information
Zentrik committed Oct 3, 2024
1 parent bd32117 commit bd38c0a
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions src/disasm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1272,18 +1272,9 @@ jl_value_t *jl_dump_function_asm_impl(jl_llvmf_dump_t* dump, char emit_mc, const
));
std::unique_ptr<AsmPrinter> Printer(
TM->getTarget().createAsmPrinter(*TM, std::move(S)));
Printer->addAsmPrinterHandler(
#if JL_LLVM_VERSION >= 190000
std::unique_ptr<AsmPrinterHandler>(
new LineNumberPrinterHandler(*Printer, debuginfo))
#else
AsmPrinter::HandlerInfo(
std::unique_ptr<AsmPrinterHandler>(
new LineNumberPrinterHandler(*Printer, debuginfo)),
"emit", "Debug Info Emission", "Julia",
"Julia::LineNumberPrinterHandler Markup")
#endif
);
Printer->addAsmPrinterHandler(AsmPrinter::HandlerInfo(
std::unique_ptr<AsmPrinterHandler>(new LineNumberPrinterHandler(*Printer, debuginfo)),
"emit", "Debug Info Emission", "Julia", "Julia::LineNumberPrinterHandler Markup"));
if (!Printer)
return jl_an_empty_string;
PM.add(Printer.release());
Expand Down

0 comments on commit bd38c0a

Please sign in to comment.