svn commit: r275153 - projects/clang350-import/contrib/llvm/include/llvm/Support

Dimitry Andric dim at FreeBSD.org
Wed Nov 26 23:53:36 UTC 2014


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.


More information about the svn-src-projects mailing list