module AsmUtils
( sectionType
) where
import GhcPrelude
import Platform
import Outputable
sectionType :: String
-> SDoc
sectionType :: String -> SDoc
sectionType ty :: String
ty = (Platform -> SDoc) -> SDoc
sdocWithPlatform ((Platform -> SDoc) -> SDoc) -> (Platform -> SDoc) -> SDoc
forall a b. (a -> b) -> a -> b
$ \platform :: Platform
platform ->
case Platform -> Arch
platformArch Platform
platform of
ArchARM{} -> Char -> SDoc
char '%' SDoc -> SDoc -> SDoc
<> String -> SDoc
text String
ty
_ -> Char -> SDoc
char '@' SDoc -> SDoc -> SDoc
<> String -> SDoc
text String
ty