Honour -dsuppress-uniques more thoroughly
authorSimon Peyton Jones <simonpj@microsoft.com>
Fri, 17 Feb 2017 13:14:00 +0000 (13:14 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 17 Feb 2017 13:16:15 +0000 (13:16 +0000)
commit8d401e50ce35525dcdc6a21fcf952c3cbf3a72d4
treeb437497e10ad09b165beb126cf0b22b161d54804
parente52a335d3ae2437f3705baa8c81e3a62ebdd75ab
Honour -dsuppress-uniques more thoroughly

I found that tests
  parser/should_compile/DumpRenamedAst
and friends were printing uniques, which makes the test fragile.
But -dsuppress-uniques made no difference!  It turned out that
pprName wasn't properly consulting Opt_SuppressUniques.

This patch fixes the problem, and updates those three tests to
use -dsuppress-uniques
12 files changed:
compiler/basicTypes/Name.hs
compiler/basicTypes/Unique.hs
compiler/cmm/CLabel.hs
compiler/llvmGen/Llvm/PpLlvm.hs
compiler/nativeGen/PPC/Ppr.hs
compiler/nativeGen/Reg.hs
compiler/nativeGen/SPARC/Ppr.hs
compiler/nativeGen/X86/Ppr.hs
testsuite/tests/parser/should_compile/DumpParsedAst.stderr
testsuite/tests/parser/should_compile/DumpRenamedAst.stderr
testsuite/tests/parser/should_compile/DumpTypecheckedAst.stderr
testsuite/tests/parser/should_compile/all.T