diff options
author | tomsmeding <tom.smeding@gmail.com> | 2017-08-20 11:17:05 +0200 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2017-08-20 11:17:05 +0200 |
commit | 965f8bf85d7850be074bad735d815b15a85a3de0 (patch) | |
tree | 915cb183c943c503c4b4a561679b7edc2e4a2938 /X64.hs | |
parent | 694ec05bcad01fd27606aace73b49cdade16945e (diff) |
Second
Diffstat (limited to 'X64.hs')
-rw-r--r-- | X64.hs | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -68,7 +68,8 @@ instance XRefSub Imm where instance XRefSub RegMem where xref x@(XReg _ _) = RegMem x xref x@(XMem _ _ _ _ _) = RegMem x - xref _ = undefined + xref x = RegMem x + -- xref _ = undefined instance XRefSub RegMemImm where xref x = RegMemImm x @@ -266,6 +267,10 @@ xrefSetSize sz (XReg _ r) = XReg sz r xrefSetSize sz (XMem _ a b c d) = XMem sz a b c d xrefSetSize _ x@(XImm _) = x +isXReg :: XRef -> Bool +isXReg (XReg _ _) = True +isXReg _ = False + isXMem :: XRef -> Bool isXMem (XMem _ _ _ _ _) = True isXMem _ = False |