mirror of
https://github.com/intel/llvm.git
synced 2026-01-15 12:25:46 +08:00
Improved name demangling performance by 20% on darwin.
llvm-svn: 113032
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user