summaryrefslogtreecommitdiff
path: root/compiler/utils/AsmUtils.hs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/utils/AsmUtils.hs')
-rw-r--r--compiler/utils/AsmUtils.hs21
1 files changed, 0 insertions, 21 deletions
diff --git a/compiler/utils/AsmUtils.hs b/compiler/utils/AsmUtils.hs
deleted file mode 100644
index d3393d71e2..0000000000
--- a/compiler/utils/AsmUtils.hs
+++ /dev/null
@@ -1,21 +0,0 @@
--- | Various utilities used in generating assembler.
---
--- These are used not only by the native code generator, but also by the
--- GHC.Driver.Pipeline
-module AsmUtils
- ( sectionType
- ) where
-
-import GhcPrelude
-
-import GHC.Platform
-import Outputable
-
--- | Generate a section type (e.g. @\@progbits@). See #13937.
-sectionType :: Platform -- ^ Target platform
- -> String -- ^ section type
- -> SDoc -- ^ pretty assembler fragment
-sectionType platform ty =
- case platformArch platform of
- ArchARM{} -> char '%' <> text ty
- _ -> char '@' <> text ty