Change the strategy to determine dynamic data access
authorClemens Fruhwirth <clemens@endorphin.org>
Tue, 31 Jul 2007 09:59:53 +0000 (09:59 +0000)
committerClemens Fruhwirth <clemens@endorphin.org>
Tue, 31 Jul 2007 09:59:53 +0000 (09:59 +0000)
Instead of attaching the information whether a Label is going to be
accessed dynamically or not (distinction between IdLabel/DynLabel and
additional flags in ModuleInitLabel and PlainModuleInitLabel), we hand
dflags through the CmmOpt monad and the NatM monad. Before calling
labelDynamic in PositionIndependentCode, we extract thisPackage from
dflags and supply the current package to labelDynamic, so it can take
this information into account instead of extracting it from the labels
itself. This simplifies a lot of code in codeGen that just hands
through this_pkg.


No differences found