From 0de03cd78729dc58a846c64b645e71057ec5d24e Mon Sep 17 00:00:00 2001 From: Sylvain Henry Date: Wed, 11 Mar 2020 19:14:11 +0100 Subject: DynFlags refactoring III Use Platform instead of DynFlags when possible: * `tARGET_MIN_INT` et al. replaced with `platformMinInt` et al. * no more DynFlags in PreRules: added a new `RuleOpts` datatype * don't use `wORD_SIZE` in the compiler * make `wordAlignment` use `Platform` * make `dOUBLE_SIZE` a constant Metric Decrease: T13035 T1969 --- includes/MachDeps.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'includes') diff --git a/includes/MachDeps.h b/includes/MachDeps.h index 81d6641dff..98a90814d9 100644 --- a/includes/MachDeps.h +++ b/includes/MachDeps.h @@ -32,9 +32,7 @@ * * To get target's values it is preferred to use runtime target * configuration from 'targetPlatform :: DynFlags -> Platform' - * record. A few wrappers are already defined and used throughout GHC: - * wORD_SIZE :: DynFlags -> Int - * wORD_SIZE dflags = pc_WORD_SIZE (platformConstants dflags) + * record. * * Hence we hide these macros from GHC_STAGE=1 */ -- cgit v1.2.1