Disabled spell checking in the expression parser,

which incurs large overheads in terms of type
parsing and importing.

llvm-svn: 154885
This commit is contained in:
Sean Callanan 2012-04-17 00:49:48 +00:00
parent 29ae538647
commit 0765c82694
1 changed files with 6 additions and 0 deletions

View File

@ -228,6 +228,12 @@ ClangExpressionParser::ClangExpressionParser (ExecutionContextScope *exe_scope,
if (expr.DesiredResultType() == ClangExpression::eResultTypeId)
m_compiler->getLangOpts().DebuggerCastResultToId = true;
// Spell checking is a nice feature, but it ends up completing a
// lot of types that we didn't strictly speaking need to complete.
// As a result, we spend a long time parsing and importing debug
// information.
m_compiler->getLangOpts().SpellChecking = false;
lldb::ProcessSP process_sp;
if (exe_scope)
process_sp = exe_scope->CalculateProcess();