From: sewardj Date: Mon, 19 Feb 2001 11:38:55 +0000 (+0000) Subject: [project @ 2001-02-19 11:38:55 by sewardj] X-Git-Tag: Approximately_9120_patches~2602 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=8384f6dd96ae3899847a56245f17d05b06a3d953;p=ghc-hetmet.git [project @ 2001-02-19 11:38:55 by sewardj] Expand on comments re StString lifting activity --- diff --git a/ghc/compiler/nativeGen/MachCode.lhs b/ghc/compiler/nativeGen/MachCode.lhs index 455e4ab..cfea55e 100644 --- a/ghc/compiler/nativeGen/MachCode.lhs +++ b/ghc/compiler/nativeGen/MachCode.lhs @@ -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