From 05550a5abc369e1cc4fc48def532ca9ba9adcad7 Mon Sep 17 00:00:00 2001 From: Sylvain Henry Date: Sun, 23 Aug 2020 22:20:09 +0200 Subject: Avoid roundtrip through SDoc As found by @monoidal on https://gitlab.haskell.org/ghc/ghc/-/merge_requests/3885#note_295126 --- compiler/GHC/CmmToAsm/Dwarf.hs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/compiler/GHC/CmmToAsm/Dwarf.hs b/compiler/GHC/CmmToAsm/Dwarf.hs index d09588841b..c179b2f1d2 100644 --- a/compiler/GHC/CmmToAsm/Dwarf.hs +++ b/compiler/GHC/CmmToAsm/Dwarf.hs @@ -179,9 +179,7 @@ procToDwarf config prc = DwarfSubprogram { dwChildren = map blockToDwarf (dblBlocks prc) , dwName = case dblSourceTick prc of Just s@SourceNote{} -> sourceName s - _otherwise -> renderWithContext defaultSDocContext - $ withPprStyle defaultDumpStyle - $ ppr (dblLabel prc) + _otherwise -> show (dblLabel prc) , dwLabel = dblCLabel prc , dwParent = fmap mkAsmTempDieLabel $ mfilter goodParent -- cgit v1.2.1