Stop the lldb_private::RegularExpression class from implicitly

constructing itself and causing unexpected things to happen
in LLDB.

llvm-svn: 134598
This commit is contained in:
Greg Clayton 2011-07-07 04:49:07 +00:00
parent 667be58220
commit 1d4313b261
3 changed files with 3 additions and 2 deletions

View File

@ -51,6 +51,7 @@ public:
/// @param[in] flags
/// Flags that are passed the the \c regcomp() function.
//------------------------------------------------------------------
explicit
RegularExpression (const char* re, int flags = REG_EXTENDED);
//------------------------------------------------------------------

View File

@ -465,7 +465,7 @@ public:
}
else
{
matches = exe_ctx.target->GetImages().FindGlobalVariables (arg,
matches = exe_ctx.target->GetImages().FindGlobalVariables (ConstString(arg),
true,
UINT32_MAX,
global_var_list);

View File

@ -4428,7 +4428,7 @@ SymbolFileDWARF::SearchNamespace (const clang::NamespaceDecl *namespace_decl,
std::vector<NameToDIE::Info> die_info_array;
size_t num_matches = m_type_index.Find (name, die_info_array);
size_t num_matches = m_type_index.Find (ConstString(name), die_info_array);
if (num_matches)
{