From patchwork Wed Jul 7 10:22:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giuliano Procida X-Patchwork-Id: 44199 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 73B6F394FC03 for ; Wed, 7 Jul 2021 10:22:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 73B6F394FC03 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1625653349; bh=XeVxy8ySgWkNbtGNJwJcH08CW/CdoSC4LEoMmbZc+0w=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Help: List-Subscribe:From:Reply-To:Cc:From; b=Yu8TdGKNg08h/JiDLj2XwaV1PzPwgmdt+OwaNEG+K7ZlstbhyRu5pNofPfT79ZOxK b4sPp9FTE25soKZa4HbsmAYlOo8cEFXeK8MY1dQaLKLlkZyrtdmiiN/U8RRq5aeabp ecK6E4WEMSuwHwtye70BSSfBMpQQf7T20ciwI/Ec= X-Original-To: libabigail@sourceware.org Delivered-To: libabigail@sourceware.org Received: from mail-wr1-x44a.google.com (mail-wr1-x44a.google.com [IPv6:2a00:1450:4864:20::44a]) by sourceware.org (Postfix) with ESMTPS id EF2E2385702D for ; Wed, 7 Jul 2021 10:22:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org EF2E2385702D Received: by mail-wr1-x44a.google.com with SMTP id j1-20020adfb3010000b02901232ed22e14so623408wrd.5 for ; Wed, 07 Jul 2021 03:22:25 -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=XeVxy8ySgWkNbtGNJwJcH08CW/CdoSC4LEoMmbZc+0w=; b=W+qQ5OOkJOe02F1wO9sfwXqKhvhN5f9vukLDSgI5domd/REW2o0fraRt5gNnrc6ryV 7mGYJV0b/0QBJFfqkxWNlU8URH3Da+UB0llFAZN5dys1qCA5vEjJmHk/WFP9zKFAcWtP 1IZ3PSWMFLZ2a2OLVTWPEpjrcW3VReE83x9uhjjFdA4ocUAVV9eGEEFq6D9MKzAtQ0zZ VpOgwORquIWTmgv6zGEZ7nbRvD3U6rqKEfRJ5vfl8KIJ9AmNOYIviFMFJUOnpRc1w5nn yDQ1PMLFi6kOEBvJHvJaPo1hHGwnEhVNGxFm/xBnDiZEtBLy8YwoCNKnLnZ6PfrhSd4i I+gA== X-Gm-Message-State: AOAM531962/jaWqnNcLgZl1uZxnhBkwf6KTMnTs8mOZH/CTAxaiuZEGm 34ZvjP5gsIKnGS4CJBcpFCn5rvGiSTwFwj035kDq7cepGZlNqenmurV3Unnf2jdaNnSif+1rPcA udCqGgp+cWAFOFr9yIHquIRwBBNWrVZzycYxFfA90IfcL2gzEb8YvhOxCKww6bDBNp/tmuz0= X-Google-Smtp-Source: ABdhPJww1sHXTDr4Xv1Xqg8/LnYTxXEOpGmX2rw+Sc1SsgBkoX4RC4g8QvoymYQtSj5GNvIAGnwG7pTLFkl7zA== X-Received: from tef.lon.corp.google.com ([2a00:79e0:d:210:3b4d:50e5:ec51:a83c]) (user=gprocida job=sendgmr) by 2002:a05:600c:354d:: with SMTP id i13mr5857417wmq.143.1625653344752; Wed, 07 Jul 2021 03:22:24 -0700 (PDT) Date: Wed, 7 Jul 2021 11:22:22 +0100 Message-Id: <20210707102222.725766-1-gprocida@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.32.0.93.g670b81a890-goog Subject: [PATCH] abg-ir.h: add declaration of operator<< for elf_symbol::visibility To: libabigail@sourceware.org X-Spam-Status: No, score=-22.5 required=5.0 tests=BAYES_00, DKIMWL_WL_MED, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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+patchwork=sourceware.org@sourceware.org Sender: "Libabigail" There is a formatted output operator for elf_symbol::visibility in abg-ir.cc. However, it had no visibile declaration and was not usable by library users. This commit adds the declaration. * include/abg-ir.h (operator<<(elf_symbol::visibility): Add declaration. Signed-off-by: Giuliano Procida Reviewed-by: Matthias Maennich --- include/abg-ir.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/abg-ir.h b/include/abg-ir.h index da43727f..641ce514 100644 --- a/include/abg-ir.h +++ b/include/abg-ir.h @@ -1107,6 +1107,9 @@ operator<<(std::ostream& o, elf_symbol::type t); std::ostream& operator<<(std::ostream& o, elf_symbol::binding t); +std::ostream& +operator<<(std::ostream& o, elf_symbol::visibility t); + bool string_to_elf_symbol_type(const string&, elf_symbol::type&);