From patchwork Thu Jul 9 13:14:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giuliano Procida X-Patchwork-Id: 39992 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7FA9D384404C; Thu, 9 Jul 2020 13:14:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7FA9D384404C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1594300478; bh=ARztHPfRCAmwKghYez2qZmu32c4jRo16pTVSVrXMZzM=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Help: List-Subscribe:From:Reply-To:Cc:From; b=g53T31RQTc2CQkMVI+q8uF8IPsKA35HBdYQqzNMO/CyrMECJk2ebZmzp0FapnLjmH Mt/V114E081kP7jrBOf/h97L3W6+H1dTnD2FKw3BAQjA1WlvOSErNcw6slJCOVE2Tx T1PZtnjJKlMkqJDeyoGgSTRcLnzD+ZJnuexl3WMM= X-Original-To: libabigail@sourceware.org Delivered-To: libabigail@sourceware.org Received: from mail-wm1-x34a.google.com (mail-wm1-x34a.google.com [IPv6:2a00:1450:4864:20::34a]) by sourceware.org (Postfix) with ESMTPS id 64BE63846417 for ; Thu, 9 Jul 2020 13:14:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 64BE63846417 Received: by mail-wm1-x34a.google.com with SMTP id 65so2093093wmd.8 for ; Thu, 09 Jul 2020 06:14:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=ARztHPfRCAmwKghYez2qZmu32c4jRo16pTVSVrXMZzM=; b=UvUN86cCHtcGx7Q/s5/v0EGJ0K2UgKs8puV6uNW08LFIo8plLSYKcB9qKnu9R24Cx3 367lkgzITF4ymP63YAvxn4fQCIJ+46YB9w6Bm8sIKsFAEUs0vBCIyd7PRVkpGNJmFJLa W3ldkINJ9A3LhlFispbu2OWKbDkm0uxUTcikuI+unx691cN2e2ahO4XlzZl5rJh0qkLs D6k/3tknTlmzKrmB+bsLxyWvJ2A+sM0VfwNQXVmyWCIdB/GFj5byVVIPO03sM3YZ+7Ii M/M7A3CmhLE4hx1n9UK89cFd45/FdIZ9lTRfJTL4A45R90i2ILC/zwTcoz++QQxh2AVm 5C6w== X-Gm-Message-State: AOAM533mkSad3MEv5eylZmHF/U6qgng9BHE5pxB6wFBsJCrdkQe2k/Zg L4Nl3R/ZdjJN0uBUknVjBaL95mI2od9Jj6ecacwz1IOWCYstgdfpYYv1sRpnG9de4bL453c/Cvj DDYkAYuO3I1gv1ZVU8YQxNjmpQgr0Gz/7HxYdE/0KHNDpiT7VVXxcppbENilWLSl9mEKlOoA= X-Google-Smtp-Source: ABdhPJxVuhmO2bBq8Klc//zk3wVVcga04z9h6btUo8MV/sXvpuNnOWJ1PXGiPmT9zzS2AwihVNxw/ULkNnsjaQ== X-Received: by 2002:a05:6000:1206:: with SMTP id e6mr33091355wrx.346.1594300474950; Thu, 09 Jul 2020 06:14:34 -0700 (PDT) Date: Thu, 9 Jul 2020 14:14:26 +0100 Message-Id: <20200709131429.1366074-1-gprocida@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.27.0.383.g050319c2ae-goog Subject: [PATCH 0/3] Tidy some peeling code To: libabigail@sourceware.org X-Spam-Status: No, score=-18.8 required=5.0 tests=BAYES_00, DKIMWL_WL_MED, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libabigail@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list of the Libabigail project List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-Patchwork-Original-From: Giuliano Procida via Libabigail From: Giuliano Procida Reply-To: Giuliano Procida Cc: maennich@google.com, kernel-team@android.com Errors-To: libabigail-bounces@sourceware.org Sender: "Libabigail" Hi Dodji. This is a short series of very small clean-ups. All the changes relate to helper functions that peel off some of the outer layers of a type to see what might be inside. There may be an opportunity to tighten up the checks being done in functions like maybe_canonicalize_type and types_have_similar_structure which are typical users of these helpers. Regards, Giuliano. Giuliano Procida (3): abg-comparison.h: Remove stray declaration Remove unused is_reference_or_pointer_diff. Simplify peel_typedef_pointer_or_reference_type include/abg-comparison.h | 5 ----- include/abg-fwd.h | 6 ++---- src/abg-comp-filter.cc | 6 ++---- src/abg-comparison.cc | 15 --------------- src/abg-dwarf-reader.cc | 6 ++---- src/abg-ir.cc | 40 +++++++++------------------------------- 6 files changed, 15 insertions(+), 63 deletions(-)