OSDN Git Service

...and make sure DynamicLibrary builds by removing "const" from the Invalid placeholder.
authorJordy Rose <jediknil@belkadan.com>
Wed, 17 Aug 2011 18:28:14 +0000 (18:28 +0000)
committerJordy Rose <jediknil@belkadan.com>
Wed, 17 Aug 2011 18:28:14 +0000 (18:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137843 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/DynamicLibrary.h

index 1196529..288936b 100644 (file)
@@ -35,7 +35,7 @@ namespace sys {
     // Placeholder whose address represents an invalid library.
     // We use this instead of NULL or a pointer-int pair because the OS library
     // might define 0 or 1 to be "special" handles, such as "search all".
-    static const char Invalid;
+    static char Invalid;
 
     // Opaque data used to interface with OS-specific dynamic library handling.
     void *Data;