Commit 3c7cf18c authored by shlevy's avatar shlevy Committed by Ben Gamari

Fix pprCLabel on platforms without native codegen.

D1290 added a panic in a code path that can be reached when
!cGhcWithNativeCodeGen.  This reverts just that part of that patch.

Reviewers: austin, simonmar, bgamari, xnyhps

Reviewed By: simonmar

Subscribers: xnyhps, thomie

Differential Revision:
parent 6370a564
......@@ -1113,8 +1113,8 @@ pprAsmCLbl _ lbl
= pprCLbl lbl
pprCLbl :: CLabel -> SDoc
pprCLbl (StringLitLabel _)
= panic "pprCLbl StringLitLabel"
pprCLbl (StringLitLabel u)
= pprUnique u <> text "_str"
pprCLbl (CaseLabel u CaseReturnPt)
= hcat [pprUnique u, text "_ret"]
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