projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c38093b
)
[project @ 2000-07-11 20:45:29 by panne]
author
panne
<unknown>
Tue, 11 Jul 2000 20:45:29 +0000
(20:45 +0000)
committer
panne
<unknown>
Tue, 11 Jul 2000 20:45:29 +0000
(20:45 +0000)
Hash MachLabel, too
ghc/compiler/basicTypes/Literal.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/basicTypes/Literal.lhs
b/ghc/compiler/basicTypes/Literal.lhs
index
54af473
..
b3037d1
100644
(file)
--- a/
ghc/compiler/basicTypes/Literal.lhs
+++ b/
ghc/compiler/basicTypes/Literal.lhs
@@
-340,6
+340,7
@@
hashLiteral (MachWord i) = hashInteger i
hashLiteral (MachWord64 i) = hashInteger i
hashLiteral (MachFloat r) = hashRational r
hashLiteral (MachDouble r) = hashRational r
hashLiteral (MachWord64 i) = hashInteger i
hashLiteral (MachFloat r) = hashRational r
hashLiteral (MachDouble r) = hashRational r
+hashLiteral (MachLabel s) = hashFS s
hashLiteral (MachLitLit s _) = hashFS s
hashRational :: Rational -> Int
hashLiteral (MachLitLit s _) = hashFS s
hashRational :: Rational -> Int