[Git][ghc/ghc][master] compiler: remove unused CompilerInfo/LinkerInfo types
Marge Bot (@marge-bot)
gitlab at gitlab.haskell.org
Wed Jun 5 02:51:54 UTC 2024
Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
98ad1ea5 by Cheng Shao at 2024-06-04T22:51:26-04:00
compiler: remove unused CompilerInfo/LinkerInfo types
This patch removes CompilerInfo/LinkerInfo types from the compiler
since they aren't actually used anywhere.
- - - - -
2 changed files:
- compiler/GHC/Driver/DynFlags.hs
- compiler/GHC/Driver/Session.hs
Changes:
=====================================
compiler/GHC/Driver/DynFlags.hs
=====================================
@@ -60,10 +60,6 @@ module GHC.Driver.DynFlags (
versionedAppDir, versionedFilePath,
extraGccViaCFlags, globalPackageDatabasePath,
- -- * Linker/compiler information
- LinkerInfo(..),
- CompilerInfo(..),
-
-- * Include specifications
IncludeSpecs(..), addGlobalInclude, addQuoteInclude, flattenIncludes,
addImplicitQuoteInclude,
@@ -758,31 +754,6 @@ data ParMakeCount
-- | Use the specific semaphore @<sem>@ to control parallelism (@-jsem <sem>@ flag).
| ParMakeSemaphore FilePath
--- -----------------------------------------------------------------------------
--- Linker/compiler information
-
--- LinkerInfo contains any extra options needed by the system linker.
-data LinkerInfo
- = GnuLD [Option]
- | Mold [Option]
- | GnuGold [Option]
- | LlvmLLD [Option]
- | DarwinLD [Option]
- | SolarisLD [Option]
- | AixLD [Option]
- | UnknownLD
- deriving Eq
-
--- CompilerInfo tells us which C compiler we're using
-data CompilerInfo
- = GCC
- | Clang
- | AppleClang
- | AppleClang51
- | Emscripten
- | UnknownCC
- deriving Eq
-
-- | The 'GhcMode' tells us whether we're doing multi-module
-- compilation (controlled via the "GHC" API) or one-shot
-- (single-module) compilation. This makes a difference primarily to
=====================================
compiler/GHC/Driver/Session.hs
=====================================
@@ -215,8 +215,6 @@ module GHC.Driver.Session (
isFmaEnabled,
-- * Linker/compiler information
- LinkerInfo(..),
- CompilerInfo(..),
useXLinkerRPath,
-- * Include specifications
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/98ad1ea5ea9f113335df591cab362d841ee7b96b
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/98ad1ea5ea9f113335df591cab362d841ee7b96b
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20240604/d1eee40d/attachment-0001.html>
More information about the ghc-commits
mailing list