From owner-svn-src-projects@FreeBSD.ORG Wed Nov 26 23:53:36 2014 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 779C84A9; Wed, 26 Nov 2014 23:53:36 +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 64BB77AF; Wed, 26 Nov 2014 23:53:36 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id sAQNraQU048435; Wed, 26 Nov 2014 23:53:36 GMT (envelope-from dim@FreeBSD.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id sAQNraGB048434; Wed, 26 Nov 2014 23:53:36 GMT (envelope-from dim@FreeBSD.org) Message-Id: <201411262353.sAQNraGB048434@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: dim set sender to dim@FreeBSD.org using -f From: Dimitry Andric Date: Wed, 26 Nov 2014 23:53:36 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r275153 - projects/clang350-import/contrib/llvm/include/llvm/Support 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: Wed, 26 Nov 2014 23:53:36 -0000 Author: dim Date: Wed Nov 26 23:53:35 2014 New Revision: 275153 URL: https://svnweb.freebsd.org/changeset/base/275153 Log: Pull in r216571 from upstream llvm trunk (by Zachary Turner): Fix some semantic usability issues with DynamicLibrary. This patch allows invalid DynamicLibrary instances to be constructed, and fixes the const-correctness of the isValid() method. No functional change. This is needed for supporting the upgrade to a newer LLDB snapshot. Modified: projects/clang350-import/contrib/llvm/include/llvm/Support/DynamicLibrary.h Modified: projects/clang350-import/contrib/llvm/include/llvm/Support/DynamicLibrary.h ============================================================================== --- projects/clang350-import/contrib/llvm/include/llvm/Support/DynamicLibrary.h Wed Nov 26 23:52:59 2014 (r275152) +++ projects/clang350-import/contrib/llvm/include/llvm/Support/DynamicLibrary.h Wed Nov 26 23:53:35 2014 (r275153) @@ -43,10 +43,11 @@ namespace sys { // Opaque data used to interface with OS-specific dynamic library handling. void *Data; - explicit DynamicLibrary(void *data = &Invalid) : Data(data) {} public: + explicit DynamicLibrary(void *data = &Invalid) : Data(data) {} + /// Returns true if the object refers to a valid library. - bool isValid() { return Data != &Invalid; } + bool isValid() const { return Data != &Invalid; } /// Searches through the library for the symbol \p symbolName. If it is /// found, the address of that symbol is returned. If not, NULL is returned.