From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id BDADD38378C0 for ; Wed, 14 Dec 2022 03:34:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BDADD38378C0 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=polymtl.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=polymtl.ca Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 2BE3Yh6n029128 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Dec 2022 22:34:48 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 2BE3Yh6n029128 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polymtl.ca; s=default; t=1670988888; bh=OyWhwm3oVLym3f5ZT8V7a5pDiZHNuM3p8l/HswllWwg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LaxD0mj+21R5X/HKncl99/IMcgXVs/SApmd7f744JGfHQganuYTXtXpnFkWSMDPm7 cA7pYqZZdbqcaJYgCvAZQoPOJuCoNawwHdG7INER956Nlmy5MPL3jT57NXOiVLrRfN RL3ElT250QFtGuWFPqr8TxLaNbKXLc1rJC/FiRVk= Received: from simark.localdomain (unknown [217.28.27.60]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 1E0081E124; Tue, 13 Dec 2022 22:34:42 -0500 (EST) From: Simon Marchi To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH v2 01/13] gdb: move type_map_instance to compile/compile.c Date: Tue, 13 Dec 2022 22:34:29 -0500 Message-Id: <20221214033441.499512-2-simon.marchi@polymtl.ca> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221214033441.499512-1-simon.marchi@polymtl.ca> References: <20221214033441.499512-1-simon.marchi@polymtl.ca> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Wed, 14 Dec 2022 03:34:43 +0000 X-Spam-Status: No, score=-3189.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: From: Simon Marchi It's only used in compile/compile.c, it doesn't need to be in a header. Change-Id: Ic5bec996b7b0cd7130055d1e8ff238b5ac4292a3 --- gdb/compile/compile-internal.h | 13 ------------- gdb/compile/compile.c | 13 +++++++++++++ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/gdb/compile/compile-internal.h b/gdb/compile/compile-internal.h index 042ddf9c5f92..0d3fcd76f0c0 100644 --- a/gdb/compile/compile-internal.h +++ b/gdb/compile/compile-internal.h @@ -26,19 +26,6 @@ extern bool compile_debug; struct block; -/* An object that maps a gdb type to a gcc type. */ - -struct type_map_instance -{ - /* The gdb type. */ - - struct type *type; - - /* The corresponding gcc type handle. */ - - gcc_type gcc_type_handle; -}; - /* An object of this type holds state associated with a given compilation job. */ diff --git a/gdb/compile/compile.c b/gdb/compile/compile.c index 2843f05fdd7d..65bbf6711635 100644 --- a/gdb/compile/compile.c +++ b/gdb/compile/compile.c @@ -74,6 +74,19 @@ struct symbol_error char *message; }; +/* An object that maps a gdb type to a gcc type. */ + +struct type_map_instance +{ + /* The gdb type. */ + + struct type *type; + + /* The corresponding gcc type handle. */ + + gcc_type gcc_type_handle; +}; + /* Hash a type_map_instance. */ static hashval_t -- 2.38.1