From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <3YIDlYAgKCgUluwthniflttlqj.htrqngfgnlfnqxtzwhj1fwj.twl@flex--gprocida.bounces.google.com> 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 From: Giuliano Procida To: libabigail@sourceware.org Cc: dodji@seketeli.org, kernel-team@android.com, gprocida@google.com, maennich@google.com Content-Type: text/plain; charset="UTF-8" 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-List-Received-Date: Wed, 07 Jul 2021 10:22:27 -0000 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 --- 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&); -- 2.32.0.93.g670b81a890-goog