Commit 19731a77 authored by Peter Trommler's avatar Peter Trommler 🥁

PPC NCG: Emit type declaration on all ELF systems

parent f4659192
......@@ -142,9 +142,8 @@ pprGloblDecl lbl
pprTypeAndSizeDecl :: CLabel -> SDoc
pprTypeAndSizeDecl lbl
= sdocWithPlatform $ \platform ->
if platformOS platform == OSLinux && externallyVisibleCLabel lbl
then text ".type " <>
ppr lbl <> text ", @object"
if osElfTarget (platformOS platform) && externallyVisibleCLabel lbl
then text "\t.type " <> ppr lbl <> text ", @object"
else empty
pprLabel :: CLabel -> SDoc
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment