[m-rev.] diff: implicitly import region_builtin

Julien Fischer juliensf at csse.unimelb.edu.au
Fri Jun 15 18:38:51 AEST 2007


Estimated hours taken: 0.1
Branches: main

compiler/modules.m:
 	Implicitly import the region_builtin module in .rbmm grades.

Julien.

Index: compiler/modules.m
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/compiler/modules.m,v
retrieving revision 1.432
diff -u -r1.432 modules.m
--- compiler/modules.m	14 Jun 2007 02:27:17 -0000	1.432
+++ compiler/modules.m	15 Jun 2007 08:32:31 -0000
@@ -2876,6 +2876,7 @@
      MercuryProfilingBuiltin = mercury_profiling_builtin_module,
      MercuryTermSizeProfBuiltin = mercury_term_size_prof_builtin_module,
      MercuryParBuiltin = mercury_par_builtin_module,
+    MercuryRegionBuiltin = mercury_region_builtin_module,
      !:ImportDeps = [MercuryPublicBuiltin | !.ImportDeps],
      !:UseDeps = [MercuryPrivateBuiltin | !.UseDeps],
      (
@@ -2931,6 +2932,13 @@
          !:UseDeps = [MercuryParBuiltin | !.UseDeps]
      ;
          true
+    ),
+    globals.lookup_bool_option(Globals, use_regions, UseRegions),
+    (
+        UseRegions = yes,
+        !:UseDeps = [MercuryRegionBuiltin | !.UseDeps]
+    ;
+        UseRegions = no
      ).

  :- pred contains_tabling_pragma(item_list::in) is semidet.

--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list