Separate out the tests for whether the compiler suports R-value
[oota-llvm.git] / include / llvm / Support / DynamicLibrary.h
index 11965292dd187a4487be961806d3e22db8429bc2..0f59cbf23947d132f26804c2e5b410a0ef63854b 100644 (file)
@@ -17,6 +17,9 @@
 #include <string>
 
 namespace llvm {
+
+class StringRef;
+
 namespace sys {
 
   /// This class provides a portable interface to dynamic libraries which also
@@ -35,7 +38,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;