[project @ 2000-08-10 10:20:03 by rrt]
authorrrt <unknown>
Thu, 10 Aug 2000 10:20:03 +0000 (10:20 +0000)
committerrrt <unknown>
Thu, 10 Aug 2000 10:20:03 +0000 (10:20 +0000)
Reinstated isLocallyDefinedName test in isDllName, because nameModule can't
cope with local names.

ghc/compiler/basicTypes/Name.lhs

index 23c3a01..d066626 100644 (file)
@@ -455,6 +455,8 @@ maybeUserImportedFrom other                                            = Nothing
 isDllName :: Name -> Bool
        -- Does this name refer to something in a different DLL?
 isDllName nm = not opt_Static &&
+              not (isLocallyDefinedName nm) && 
+-- isLocallyDefinedName test is needed because nameModule won't work on local names
               not (isLocalModule (nameModule nm))
 
 nameSrcLoc name = provSrcLoc (n_prov name)