From 861292a6c5e58b4f78bef207c717b801b3fc1fed Mon Sep 17 00:00:00 2001 From: Bernhard Schommer Date: Sun, 6 Sep 2015 20:32:55 +0200 Subject: Startet implementation of new Debug interface. Added a new file debug/Debug.ml which will be the interface between for generating and printing the debuging information. Currently it contains only the code for the line directived. --- powerpc/TargetPrinter.ml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'powerpc/TargetPrinter.ml') diff --git a/powerpc/TargetPrinter.ml b/powerpc/TargetPrinter.ml index 409f2cc0..5159850d 100644 --- a/powerpc/TargetPrinter.ml +++ b/powerpc/TargetPrinter.ml @@ -21,6 +21,7 @@ open AST open Memdata open Asm open PrintAsmaux +open Debug (* Recognition of target ABI and asm syntax *) @@ -139,7 +140,7 @@ module Linux_System : SYSTEM = let print_file_line oc file line = - print_file_line oc comment file line + Debug.print_file_line oc comment file line (* Emit .cfi directives *) let cfi_startproc = cfi_startproc @@ -217,7 +218,7 @@ module Diab_System : SYSTEM = let print_file_line oc file line = - print_file_line_d2 oc comment file line + Debug.print_file_line_d2 oc comment file line (* Emit .cfi directives *) let cfi_startproc oc = () -- cgit