aboutsummaryrefslogtreecommitdiffstats
path: root/common/DebugPrint.ml
diff options
context:
space:
mode:
Diffstat (limited to 'common/DebugPrint.ml')
-rw-r--r--common/DebugPrint.ml6
1 files changed, 2 insertions, 4 deletions
diff --git a/common/DebugPrint.ml b/common/DebugPrint.ml
index 6f8449ee..021ea5c0 100644
--- a/common/DebugPrint.ml
+++ b/common/DebugPrint.ml
@@ -1,6 +1,7 @@
open Maps
open Camlcoq
open Registers
+open AuxTools
let debug_flag = ref false
@@ -128,10 +129,7 @@ end
let print_instructions insts code =
- let get_some = function
- | None -> failwith "Did not get some"
- | Some thing -> thing
- in if (!debug_flag) then begin
+ if (!debug_flag) then begin
debug "[ ";
List.iter (
fun n -> (PrintRTL.print_instruction stdout (P.to_int n, get_some @@ PTree.get n code))