Repository : ssh://darcs.haskell.org//srv/darcs/ghc On branch : ghc-7.2
http://hackage.haskell.org/trac/ghc/changeset/78b8c8c8e66f18a0264b982c918d42260d8ab9a1 >--------------------------------------------------------------- commit 78b8c8c8e66f18a0264b982c918d42260d8ab9a1 Author: Ian Lynagh <[email protected]> Date: Fri Jul 15 02:26:24 2011 +0100 More work towards cross-compilation There's now a variant of the Outputable class that knows what platform we're targetting: class PlatformOutputable a where pprPlatform :: Platform -> a -> SDoc pprPlatformPrec :: Platform -> Rational -> a -> SDoc and various instances have had to be converted to use that class, and we pass Platform around accordingly. compiler/cmm/CLabel.hs | 2 + compiler/cmm/CmmCvt.hs | 17 ++-- compiler/cmm/CmmLint.hs | 24 +++--- compiler/cmm/CmmParse.y | 2 +- compiler/cmm/CmmPipeline.hs | 35 ++++---- compiler/cmm/CmmProcPoint.hs | 13 ++-- compiler/cmm/OldPprCmm.hs | 17 ++-- compiler/cmm/PprCmm.hs | 49 ++++++----- compiler/cmm/PprCmmDecl.hs | 39 +++++---- compiler/codeGen/CodeGen.lhs | 2 +- compiler/codeGen/StgCmm.hs | 2 +- compiler/llvmGen/LlvmCodeGen.hs | 2 +- compiler/main/CodeOutput.lhs | 2 +- compiler/main/HscMain.lhs | 17 ++-- compiler/nativeGen/AsmCodeGen.lhs | 29 +++--- compiler/nativeGen/PPC/CodeGen.hs | 7 +- compiler/nativeGen/PPC/Ppr.hs | 6 +- compiler/nativeGen/PprInstruction.hs | 2 + compiler/nativeGen/RegAlloc/Graph/Main.hs | 20 +++-- compiler/nativeGen/RegAlloc/Graph/SpillCost.hs | 13 ++-- compiler/nativeGen/RegAlloc/Graph/Stats.hs | 24 +++--- compiler/nativeGen/RegAlloc/Linear/Main.hs | 115 +++++++++++++----------- compiler/nativeGen/RegAlloc/Liveness.hs | 57 ++++++------ compiler/nativeGen/SPARC/CodeGen.hs | 25 +++--- compiler/nativeGen/SPARC/CodeGen/Sanity.hs | 14 ++-- compiler/nativeGen/SPARC/Ppr.hs | 6 +- compiler/nativeGen/X86/CodeGen.hs | 7 +- compiler/nativeGen/X86/Ppr.hs | 6 +- compiler/utils/Digraph.lhs | 3 + compiler/utils/Outputable.lhs | 18 ++++ 30 files changed, 320 insertions(+), 255 deletions(-) Diff suppressed because of size. To see it, use: git show 78b8c8c8e66f18a0264b982c918d42260d8ab9a1 _______________________________________________ Cvs-ghc mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-ghc
