[llvm-commits] [llvm] r137843 - /llvm/trunk/include/llvm/Support/DynamicLibrary.h

Benjamin Kramer benny.kra at googlemail.com
Wed Aug 17 11:36:17 PDT 2011


On Wed, Aug 17, 2011 at 11:28, Jordy Rose <jediknil at belkadan.com> wrote:
> Author: jrose
> Date: Wed Aug 17 13:28:14 2011
> New Revision: 137843
>
> URL: http://llvm.org/viewvc/llvm-project?rev=137843&view=rev
> Log:
> ...and make sure DynamicLibrary builds by removing "const" from the Invalid placeholder.
>
> Modified:
>    llvm/trunk/include/llvm/Support/DynamicLibrary.h
>
> Modified: llvm/trunk/include/llvm/Support/DynamicLibrary.h
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/DynamicLibrary.h?rev=137843&r1=137842&r2=137843&view=diff
> ==============================================================================
> --- llvm/trunk/include/llvm/Support/DynamicLibrary.h (original)
> +++ llvm/trunk/include/llvm/Support/DynamicLibrary.h Wed Aug 17 13:28:14 2011
> @@ -35,7 +35,7 @@
>     // 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;

You also have to define it in a .cpp file, otherwise linking will fail.

- Ben




More information about the llvm-commits mailing list