Always have LLVM optimize globals
authorPeter Wortmann <scpmw@leeds.ac.uk>
Tue, 2 Jul 2013 22:42:27 +0000 (23:42 +0100)
committerDavid Terei <davidterei@gmail.com>
Fri, 5 Jul 2013 23:59:27 +0000 (16:59 -0700)
commita42125243ac1cb0f05d93d58e6d2818d742501ee
tree1c3ac98831b4a0c2a633ad53b8ceb14196411037
parent126285e6d856da9ed9bd48f8ba5e6acbea8c9e02
Always have LLVM optimize globals

This pass is pretty cheap and eliminates the aliases generated by the LLVM
backend. This in turn is required for dynamic linking to work correctly,
as LLVM fails to properly attribute calls to aliased addresses.

Signed-off-by: David Terei <davidterei@gmail.com>
compiler/main/DriverPipeline.hs