Commit 103494b4 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Remove unused pprUserReg functions

parent b29e277d
......@@ -12,7 +12,6 @@ module PPC.Ppr (
pprSectionHeader,
pprData,
pprInstr,
pprUserReg,
pprSize,
pprImm,
pprDataItem,
......@@ -157,9 +156,6 @@ instance Outputable Instr where
ppr instr = Outputable.docToSDoc $ pprInstr instr
pprUserReg :: Reg -> Doc
pprUserReg = pprReg
pprReg :: Reg -> Doc
pprReg r
......
......@@ -12,7 +12,6 @@ module SPARC.Ppr (
pprSectionHeader,
pprData,
pprInstr,
pprUserReg,
pprSize,
pprImm,
pprDataItem
......@@ -140,12 +139,6 @@ instance Outputable Instr where
ppr instr = Outputable.docToSDoc $ pprInstr instr
-- | Pretty print a register.
-- This is an alias of pprReg for legacy reasons, should remove it.
pprUserReg :: Reg -> Doc
pprUserReg = pprReg
-- | Pretty print a register.
pprReg :: Reg -> Doc
pprReg reg
......
......@@ -12,7 +12,6 @@ module X86.Ppr (
pprSectionHeader,
pprData,
pprInstr,
pprUserReg,
pprSize,
pprImm,
pprDataItem,
......@@ -172,12 +171,6 @@ instance Outputable Instr where
ppr instr = Outputable.docToSDoc $ pprInstr instr
pprUserReg :: Reg -> Doc
pprUserReg
| cTargetArch == I386 = pprReg II32
| cTargetArch == X86_64 = pprReg II64
| otherwise = panic "X86.Ppr.pprUserReg: not defined"
pprReg :: Size -> Reg -> Doc
pprReg s r
......
Supports Markdown
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