From owner-svn-src-projects@FreeBSD.ORG Tue Mar 24 22:38:06 2015 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7F17CDE0; Tue, 24 Mar 2015 22:38:06 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5181D322; Tue, 24 Mar 2015 22:38:06 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t2OMc63m045536; Tue, 24 Mar 2015 22:38:06 GMT (envelope-from dim@FreeBSD.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t2OMc55p045534; Tue, 24 Mar 2015 22:38:05 GMT (envelope-from dim@FreeBSD.org) Message-Id: <201503242238.t2OMc55p045534@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: dim set sender to dim@FreeBSD.org using -f From: Dimitry Andric Date: Tue, 24 Mar 2015 22:38:05 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r280473 - in projects/lld-import/contrib/llvm: include/llvm/Support lib/Target/Mips/MCTargetDesc X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Mar 2015 22:38:06 -0000 Author: dim Date: Tue Mar 24 22:38:04 2015 New Revision: 280473 URL: https://svnweb.freebsd.org/changeset/base/280473 Log: Pull in r227044 from upstream llvm trunk (by Simon Atanasyan): [Mips] Add .MIPS.options section descriptor kinds enumeration No functional changes. This is a prerequisite for building lld trunk. Modified: projects/lld-import/contrib/llvm/include/llvm/Support/ELF.h projects/lld-import/contrib/llvm/lib/Target/Mips/MCTargetDesc/MipsOptionRecord.cpp Modified: projects/lld-import/contrib/llvm/include/llvm/Support/ELF.h ============================================================================== --- projects/lld-import/contrib/llvm/include/llvm/Support/ELF.h Tue Mar 24 22:36:52 2015 (r280472) +++ projects/lld-import/contrib/llvm/include/llvm/Support/ELF.h Tue Mar 24 22:38:04 2015 (r280473) @@ -475,6 +475,22 @@ enum { STO_MIPS_MIPS16 = 0xf0 // MIPS Specific ISA for Mips16 }; +// .MIPS.options section descriptor kinds +enum { + ODK_NULL = 0, // Undefined + ODK_REGINFO = 1, // Register usage information + ODK_EXCEPTIONS = 2, // Exception processing options + ODK_PAD = 3, // Section padding options + ODK_HWPATCH = 4, // Hardware patches applied + ODK_FILL = 5, // Linker fill value + ODK_TAGS = 6, // Space for tool identification + ODK_HWAND = 7, // Hardware AND patches applied + ODK_HWOR = 8, // Hardware OR patches applied + ODK_GP_GROUP = 9, // GP group to use for text/data sections + ODK_IDENT = 10, // ID information + ODK_PAGESIZE = 11 // Page size information +}; + // Hexagon Specific e_flags // Release 5 ABI enum { Modified: projects/lld-import/contrib/llvm/lib/Target/Mips/MCTargetDesc/MipsOptionRecord.cpp ============================================================================== --- projects/lld-import/contrib/llvm/lib/Target/Mips/MCTargetDesc/MipsOptionRecord.cpp Tue Mar 24 22:36:52 2015 (r280472) +++ projects/lld-import/contrib/llvm/lib/Target/Mips/MCTargetDesc/MipsOptionRecord.cpp Tue Mar 24 22:38:04 2015 (r280473) @@ -34,7 +34,7 @@ void MipsRegInfoRecord::EmitMipsOptionRe MCA.getOrCreateSectionData(*Sec).setAlignment(8); Streamer->SwitchSection(Sec); - Streamer->EmitIntValue(1, 1); // kind + Streamer->EmitIntValue(ELF::ODK_REGINFO, 1); // kind Streamer->EmitIntValue(40, 1); // size Streamer->EmitIntValue(0, 2); // section Streamer->EmitIntValue(0, 4); // info