Fixes the ARM build
authorMoritz Angermann <moritz@lichtzwerge.de>
Tue, 21 Oct 2014 20:33:18 +0000 (15:33 -0500)
committerAustin Seipp <austin@well-typed.com>
Tue, 21 Oct 2014 20:33:19 +0000 (15:33 -0500)
commit69f63612fc17cd6b3baaa8898c8595bde304ebfb
tree3172152d1a89abc1a60e0703ba7862668c5ae159
parentc8199582ffe98fbfaef8e4aa036c748f8ec6b7ca
Fixes the ARM build

Summary:
CodeGen.Platform.hs was changed with the following diff:

   -#endif
    globalRegMaybe _                        = Nothing
   +#elif MACHREGS_NO_REGS
   +globalRegMaybe _ = Nothing
   +#else
   +globalRegMaybe = panic "globalRegMaybe not defined for this platform"
   +#endif

which causes globalRegMaybe ot panic for arch ARM.

This patch ensures globalRegMaybe is not called on ARM.

Signed-off-by: Moritz Angermann <moritz@lichtzwerge.de>
Test Plan: Building arm cross-compiler (e.g. --target=arm-apple-darwin10)

Reviewers: hvr, ezyang, simonmar, rwbarton, austin

Reviewed By: austin

Subscribers: dterei, bgamari, simonmar, ezyang, carter

Differential Revision: https://phabricator.haskell.org/D208

GHC Trac Issues: #9593
compiler/cmm/CmmSink.hs