Make lldb::Regex use StringRef.

This updates getters and setters to use StringRef instead of
const char *.  I tested the build on Linux, Windows, and OSX
and saw no build or test failures.  I cannot test any BSD
or Android variants, however I expect the required changes
to be minimal or non-existant.

llvm-svn: 282079
diff --git a/lldb/source/DataFormatters/FormatManager.cpp b/lldb/source/DataFormatters/FormatManager.cpp
index aa6e7a2..07e2b77 100644
--- a/lldb/source/DataFormatters/FormatManager.cpp
+++ b/lldb/source/DataFormatters/FormatManager.cpp
@@ -1003,9 +1003,9 @@
       new StringSummaryFormat(string_array_flags, "${var%s}"));
 
   lldb::RegularExpressionSP any_size_char_arr(
-      new RegularExpression("char \\[[0-9]+\\]"));
+      new RegularExpression(llvm::StringRef("char \\[[0-9]+\\]")));
   lldb::RegularExpressionSP any_size_wchar_arr(
-      new RegularExpression("wchar_t \\[[0-9]+\\]"));
+      new RegularExpression(llvm::StringRef("wchar_t \\[[0-9]+\\]")));
 
   TypeCategoryImpl::SharedPointer sys_category_sp =
       GetCategory(m_system_category_name);