File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 940940Returns an array of type-inferred lowered form (IR) for the methods matching the given
941941generic function and type signature. The keyword argument `optimize` controls whether
942942additional optimizations, such as inlining, are also applied.
943- The keyword debuginfo controls the amount of code metadata present in the output.
943+ The keyword `debuginfo` controls the amount of code metadata present in the output,
944+ possible options are `:source` or `:none`.
944945"""
945946function code_typed (@nospecialize (f), @nospecialize (types= Tuple);
946947 optimize= true , debuginfo:: Symbol = :default ,
Original file line number Diff line number Diff line change @@ -1572,7 +1572,8 @@ module IRShow
15721572 # :oneliner => src -> Base.IRShow.PartialLineInfoPrinter(src.linetable),
15731573 :none => src -> Base. IRShow. lineinfo_disabled,
15741574 )
1575- debuginfo[:default ] = debuginfo[:none ]
1575+ # setting debuginfo[:default] = debuginfo[:none] will disable debuginfo printing globally
1576+ debuginfo[:default ] = debuginfo[:source ]
15761577end
15771578
15781579function show (io:: IO , src:: CodeInfo ; debuginfo:: Symbol = :default )
Original file line number Diff line number Diff line change @@ -859,6 +859,7 @@ static void jl_dump_asm_internal(
859859 DILineInfoTable::iterator di_lineIter = di_lineinfo.begin ();
860860 DILineInfoTable::iterator di_lineEnd = di_lineinfo.end ();
861861 DILineInfoPrinter dbgctx{" ; " , true };
862+ dbgctx.SetVerbosity (debuginfo);
862863 if (pass != 0 ) {
863864 if (di_ctx && di_lineIter != di_lineEnd) {
864865 // Set up the line info
You can’t perform that action at this time.
0 commit comments