diff options
author | dim <dim@FreeBSD.org> | 2015-01-18 14:14:47 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2015-01-18 14:14:47 +0000 |
commit | c074a2b0d05fdd11d61e6c5ffa970c806be2f31a (patch) | |
tree | 0e56d6fc0fbb158ec2ac946d1e22170e0107492d /contrib/llvm/patches/patch-14-llvm-r216571-dynamiclib-usability.diff | |
parent | 814696f72012ae32daa581d7a1d5253a9b439b09 (diff) | |
parent | 3c7e7a1538a873b0d3b012ef8811969ac4552c2a (diff) | |
download | FreeBSD-src-c074a2b0d05fdd11d61e6c5ffa970c806be2f31a.zip FreeBSD-src-c074a2b0d05fdd11d61e6c5ffa970c806be2f31a.tar.gz |
Upgrade our copy of clang and llvm to 3.5.1 release. This is a bugfix
only release, no new features have been added.
Please note that this version requires C++11 support to build; see
UPDATING for more information.
Release notes for llvm and clang can be found here:
<http://llvm.org/releases/3.5.1/docs/ReleaseNotes.html>
<http://llvm.org/releases/3.5.1/tools/clang/docs/ReleaseNotes.html>
MFC after: 1 month
X-MFC-With: 276479
Diffstat (limited to 'contrib/llvm/patches/patch-14-llvm-r216571-dynamiclib-usability.diff')
-rw-r--r-- | contrib/llvm/patches/patch-14-llvm-r216571-dynamiclib-usability.diff | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/contrib/llvm/patches/patch-14-llvm-r216571-dynamiclib-usability.diff b/contrib/llvm/patches/patch-14-llvm-r216571-dynamiclib-usability.diff new file mode 100644 index 0000000..ff0a6d1 --- /dev/null +++ b/contrib/llvm/patches/patch-14-llvm-r216571-dynamiclib-usability.diff @@ -0,0 +1,32 @@ +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. + +Introduced here: http://svnweb.freebsd.org/changeset/base/275153 + +Index: include/llvm/Support/DynamicLibrary.h +=================================================================== +--- include/llvm/Support/DynamicLibrary.h ++++ include/llvm/Support/DynamicLibrary.h +@@ -43,10 +43,11 @@ namespace sys { + // Opaque data used to interface with OS-specific dynamic library handling. + void *Data; + ++ public: + explicit DynamicLibrary(void *data = &Invalid) : Data(data) {} +- public: ++ + /// 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. |