summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÖmer Sinan Ağacan <omeragacan@gmail.com>2019-12-25 07:37:30 +0300
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-12-26 14:09:11 -0500
commit3b17114dc360689651f2005126f5dc25510a7263 (patch)
tree15f1e0a12fdc747c0fa56974cbc9f6842b441617
parent776df719905b2d39845268a87026bfec90b2795f (diff)
downloadhaskell-3b17114dc360689651f2005126f5dc25510a7263.tar.gz
Minor refactor in ghc.cabal.in:
- Remove outdated comments - Move cutils.c from parser to cbits - Remove unused cutils.h
-rw-r--r--compiler/cbits/cutils.c (renamed from compiler/parser/cutils.c)0
-rw-r--r--compiler/ghc.cabal.in8
-rw-r--r--compiler/parser/cutils.h10
3 files changed, 3 insertions, 15 deletions
diff --git a/compiler/parser/cutils.c b/compiler/cbits/cutils.c
index fb7e3f7335..fb7e3f7335 100644
--- a/compiler/parser/cutils.c
+++ b/compiler/cbits/cutils.c
diff --git a/compiler/ghc.cabal.in b/compiler/ghc.cabal.in
index 58b840b6ad..2d3e3254ff 100644
--- a/compiler/ghc.cabal.in
+++ b/compiler/ghc.cabal.in
@@ -136,7 +136,7 @@ Library
UnboxedTuples
UndecidableInstances
- Include-Dirs: . parser utils
+ Include-Dirs: . utils
-- We need to set the unit id to ghc (without a version number)
-- as it's magic.
@@ -154,9 +154,9 @@ Library
Install-Includes: HsVersions.h
c-sources:
- parser/cutils.c
- ghci/keepCAFsForGHCi.c
+ cbits/cutils.c
cbits/genSym.c
+ ghci/keepCAFsForGHCi.c
hs-source-dirs:
.
@@ -586,8 +586,6 @@ Library
Hoopl.Dataflow
Hoopl.Graph
Hoopl.Label
--- CgInfoTbls used in ghci/DebuggerUtils
--- CgHeapery mkVirtHeapOffsets used in ghci
Exposed-Modules:
AsmCodeGen
diff --git a/compiler/parser/cutils.h b/compiler/parser/cutils.h
deleted file mode 100644
index 1d9104910d..0000000000
--- a/compiler/parser/cutils.h
+++ /dev/null
@@ -1,10 +0,0 @@
-/* -----------------------------------------------------------------------------
- *
- * Utility C functions.
- *
- * -------------------------------------------------------------------------- */
-
-#include <HsFFI.h>
-
-void enableTimingStats( void );
-void setHeapSize( HsInt size );