Skip to content
Snippets Groups Projects
Commit 22f9d23b authored by Virgile Prevosto's avatar Virgile Prevosto
Browse files

[printer] print_sid is for Cil_printer as well as for Printer.

parent 5deae9f7
No related branches found
No related tags found
No related merge requests found
...@@ -1180,6 +1180,9 @@ class cil_printer () = object (self) ...@@ -1180,6 +1180,9 @@ class cil_printer () = object (self)
method annotated_stmt (next: stmt) fmt (s: stmt) = method annotated_stmt (next: stmt) fmt (s: stmt) =
pp_open_hvbox fmt 0; pp_open_hvbox fmt 0;
if Kernel.is_debug_key_enabled Kernel.dkey_print_sid then begin
Format.fprintf fmt "/* sid:%d */@\n" s.sid;
end;
(* print the statement. *) (* print the statement. *)
if Cil.is_skip s.skind && not s.ghost && s.sattr = [] then begin if Cil.is_skip s.skind && not s.ghost && s.sattr = [] then begin
if verbose || s.labels <> [] then begin if verbose || s.labels <> [] then begin
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment