Improved name demangling performance by 20% on darwin.

llvm-svn: 113032
This commit is contained in:
Greg Clayton
2010-09-03 23:26:12 +00:00
parent 207b9d6218
commit e41e58997c
5 changed files with 55 additions and 23 deletions

View File

@@ -390,15 +390,6 @@ ConstString::DumpDebug(Stream *s) const
s->Printf("%*p: ConstString, string = %s%s%s, length = %zu", (int)sizeof(void*) * 2, this, parens, cstr, parens, cstr_len);
}
//----------------------------------------------------------------------
// Returns true if the contained string is empty.
//----------------------------------------------------------------------
bool
ConstString::IsEmpty() const
{
return m_string == NULL || m_string[0] == '\0';
}
//----------------------------------------------------------------------
// Set the string value in the object by uniquing the "cstr" string
// value in our global string pool.