OSDN Git Service

* iformat.scm (/sfmt-search-key): Use iformat key instead of list
authordevans <devans>
Sat, 13 Feb 2010 04:34:49 +0000 (04:34 +0000)
committerdevans <devans>
Sat, 13 Feb 2010 04:34:49 +0000 (04:34 +0000)
of ifields.

cgen/ChangeLog
cgen/iformat.scm

index 3f993cb..cf93c47 100644 (file)
@@ -1,3 +1,8 @@
+2010-02-12  Doug Evans  <dje@sebabeach.org>
+
+       * iformat.scm (/sfmt-search-key): Use iformat key instead of list
+       of ifields.
+
 2010-02-11  Doug Evans  <dje@sebabeach.org>
 
        * testsuite/location-1.test: Use %pmacros.
index d997c60..aea8fe3 100644 (file)
                                 ")")))
        )
     (list
+     ;; Use the iformat key so that each sformat maps to only one iformat.
+     (if (= (length sorted-used-iflds) 0)
+        "no-used-ifields"
+        (ifmt-key (insn-ifmt insn)))
      cti?
-     (insn-length insn)
-     (string-map (lambda (ifld)
-                  (string-append " (" (obj:str-name ifld) " " (ifld-ilk ifld) ")"))
-                sorted-used-iflds)
      (string-map op-key
                 sem-in-ops)
      (string-map op-key