cmm: Use LocalBlockLabel instead of AsmTempLabel to represent blocks
blockLbl was originally changed in 8b007abb to use mkTempAsmLabel to fix an inconsistency resulting in #14221. However, this breaks the C code generator, which doesn't support AsmTempLabels (#14454). Instead let's try going the other direction: use a new CLabel variety, LocalBlockLabel. Then we can teach the C code generator to deal with these as well.
Showing
- compiler/cmm/BlockId.hs 1 addition, 1 deletioncompiler/cmm/BlockId.hs
- compiler/cmm/BlockId.hs-boot 8 additions, 0 deletionscompiler/cmm/BlockId.hs-boot
- compiler/cmm/CLabel.hs 38 additions, 10 deletionscompiler/cmm/CLabel.hs
- compiler/nativeGen/NCGMonad.hs 2 additions, 3 deletionscompiler/nativeGen/NCGMonad.hs
- compiler/nativeGen/PPC/Ppr.hs 2 additions, 2 deletionscompiler/nativeGen/PPC/Ppr.hs
- compiler/nativeGen/PPC/RegInfo.hs 3 additions, 3 deletionscompiler/nativeGen/PPC/RegInfo.hs
- compiler/nativeGen/SPARC/ShortcutJump.hs 2 additions, 2 deletionscompiler/nativeGen/SPARC/ShortcutJump.hs
- compiler/nativeGen/X86/Instr.hs 4 additions, 4 deletionscompiler/nativeGen/X86/Instr.hs
compiler/cmm/BlockId.hs-boot
0 → 100644
Please register or sign in to comment