projects
/
ghc-heap-view.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
597f916
)
Use wordHost instead of CPP stuff
author
Joachim Breitner
<mail@joachim-breitner.de>
Thu, 28 Feb 2013 14:57:16 +0000
(14:57 +0000)
committer
Joachim Breitner
<mail@joachim-breitner.de>
Thu, 28 Feb 2013 14:57:16 +0000
(14:57 +0000)
src/GHC/Disassembler.hs
patch
|
blob
|
history
diff --git
a/src/GHC/Disassembler.hs
b/src/GHC/Disassembler.hs
index
982a0aa
..
53dd7f9
100644
(file)
--- a/
src/GHC/Disassembler.hs
+++ b/
src/GHC/Disassembler.hs
@@
-27,11
+27,7
@@
toBytes n =
BS.take (fromIntegral n) .
toLazyByteString .
mconcat .
-#if SIZEOF_VOID_P == 8
- map (word64Host . fromIntegral)
-#else
- map (word32Host . fromIntegral)
-#endif
+ map (wordHost . fromIntegral)
-- | Given a list of pointers, a list of literals and a ByteString containing
-- byte code instructions, disassembles them into a list of byte code instructions.