[project @ 2001-02-19 11:38:55 by sewardj]
authorsewardj <unknown>
Mon, 19 Feb 2001 11:38:55 +0000 (11:38 +0000)
committersewardj <unknown>
Mon, 19 Feb 2001 11:38:55 +0000 (11:38 +0000)
Expand on comments re StString lifting activity

ghc/compiler/nativeGen/MachCode.lhs

index 455e4ab..cfea55e 100644 (file)
@@ -91,6 +91,11 @@ stmtsToInstrs stmts
    ie, the Str is planted in-line, when what we really meant was to place
    a _reference_ to the string there.  liftStrings will lift out all such
    strings in top-level data and place them at the end of the block.
+
+   This is still a rather half-baked solution -- to do the job entirely right
+   would mean a complete traversal of all the Stixes, but there's currently no
+   real need for it, and it would be slow.  Also, potentially there could be
+   literal types other than strings which need lifting out?
 -}
 
 liftStrings :: [StixTree]    -- originals