]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Drop two useless variables from known-dwarf.awk
authorPetr Machata <pmachata@redhat.com>
Fri, 20 Feb 2015 19:05:29 +0000 (20:05 +0100)
committerPetr Machata <pmachata@redhat.com>
Tue, 24 Feb 2015 00:09:32 +0000 (01:09 +0100)
Signed-off-by: Petr Machata <pmachata@redhat.com>
config/ChangeLog
config/known-dwarf.awk [changed mode: 0644->0755]

index 1b4e89605186a94f2baf9a9fd2ba85acdae92958..409e2b1b8ead4960c59ead1d68a231779d34d2a0 100644 (file)
@@ -1,3 +1,8 @@
+2015-02-20  Petr Machata  <pmachata@redhat.com>
+
+       * known-dwarf.awk (END): Drop useless variables lo, hi.  Merge two
+       continue-checks in one.
+
 2014-12-18  Mark Wielaard  <mjw@redhat.com>
 
        * elfutils.spec.in: Update for 0.161.
old mode 100644 (file)
new mode 100755 (executable)
index 52ec5b6..4d89f0f
@@ -1,6 +1,6 @@
 #!/bin/gawk -f
 
-## Copyright (C) 2012 Red Hat, Inc.
+## Copyright (C) 2012, 2015 Red Hat, Inc.
 ##
 ## This file is part of elfutils.
 ##
@@ -48,19 +48,12 @@ END {
     if (what && what != set) continue;
     split(DW[set], elts, ",");
     m = asort(elts);
-    lo = hi = "";
     if (m == 0) continue;
     print "\n#define ALL_KNOWN_DW_" set " \\";
     for (j = 1; j <= m; ++j) {
       elt = elts[j];
-      if (elt ~ /(lo|low)_user$/) {
-       lo = elt;
+      if (elt ~ /(low?|hi|high)_user$/)
        continue;
-      }
-      if (elt ~ /(hi|high)_user$/) {
-       hi = elt;
-       continue;
-      }
       if (comment[set, elt])
        print "  ONE_KNOWN_DW_" set "_DESC (" elt ", DW_" set "_" elt \
          ", \"" comment[set, elt] "\") \\";