aboutsummaryrefslogtreecommitdiffstats
path: root/backend/PrintAsmaux.ml
diff options
context:
space:
mode:
authorBernhard Schommer <bschommer@users.noreply.github.com>2015-09-30 12:45:40 +0200
committerBernhard Schommer <bschommer@users.noreply.github.com>2015-09-30 12:45:40 +0200
commite443d76ad1ee0182353404317ab45c26227a59ea (patch)
tree1c110864431d8f6ba06c8746233397a3e221560e /backend/PrintAsmaux.ml
parentc212ab7a8adea516db72f17d818393629dbde1b3 (diff)
parentee76d81e0e7d8a76cd31bf0d01a532d248dca45a (diff)
downloadcompcert-kvx-e443d76ad1ee0182353404317ab45c26227a59ea.tar.gz
compcert-kvx-e443d76ad1ee0182353404317ab45c26227a59ea.zip
Merge pull request #56 from AbsInt/debug_locations
Debug locations
Diffstat (limited to 'backend/PrintAsmaux.ml')
-rw-r--r--backend/PrintAsmaux.ml11
1 files changed, 4 insertions, 7 deletions
diff --git a/backend/PrintAsmaux.ml b/backend/PrintAsmaux.ml
index 67e53aea..1c3b47b5 100644
--- a/backend/PrintAsmaux.ml
+++ b/backend/PrintAsmaux.ml
@@ -48,10 +48,10 @@ module type TARGET =
val get_start_addr: unit -> int
val get_end_addr: unit -> int
val get_stmt_list_addr: unit -> int
+ val get_debug_start_addr: unit -> int
val new_label: unit -> int
val label: out_channel -> int -> unit
val print_file_loc: out_channel -> file_loc -> unit
- module DwarfAbbrevs: DWARF_ABBREVS
end
(* On-the-fly label renaming *)
@@ -140,12 +140,6 @@ let coqint oc n =
fprintf oc "%ld" (camlint_of_coqint n)
(* Printing annotations in asm syntax *)
-(** All files used in the debug entries *)
-module StringSet = Set.Make(String)
-let all_files : StringSet.t ref = ref StringSet.empty
-let add_file file =
- all_files := StringSet.add file !all_files
-
let filename_info : (string, int * Printlines.filebuf option) Hashtbl.t
= Hashtbl.create 7
@@ -283,6 +277,9 @@ let print_debug_info comment print_line print_preg sp_name oc kind txt args =
| 5 -> (* local variable preallocated in stack *)
fprintf oc "%s debug: %s resides at%a\n"
comment txt print_debug_args args
+ | 6 -> (* scope annotations *)
+ fprintf oc "%s debug: current scopes%a\n"
+ comment print_debug_args args;
| _ ->
()