diff options
author | Sean Callanan <scallanan@apple.com> | 2012-04-17 00:49:48 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2012-04-17 00:49:48 +0000 |
commit | 0765c8269488be139a77561b456b73cb0cd4bc57 (patch) | |
tree | 4d1beb0e56e4576df0f1224e47a8d4d2fb12d2ea /lldb/source/Expression/ClangExpressionParser.cpp | |
parent | 29ae5386472eaa3695d1a3f45b256784b2471b69 (diff) | |
download | bcm5719-llvm-0765c8269488be139a77561b456b73cb0cd4bc57.tar.gz bcm5719-llvm-0765c8269488be139a77561b456b73cb0cd4bc57.zip |
Disabled spell checking in the expression parser,
which incurs large overheads in terms of type
parsing and importing.
llvm-svn: 154885
Diffstat (limited to 'lldb/source/Expression/ClangExpressionParser.cpp')
-rw-r--r-- | lldb/source/Expression/ClangExpressionParser.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/source/Expression/ClangExpressionParser.cpp b/lldb/source/Expression/ClangExpressionParser.cpp index 0df6a67c3a0..06f25fb24ea 100644 --- a/lldb/source/Expression/ClangExpressionParser.cpp +++ b/lldb/source/Expression/ClangExpressionParser.cpp @@ -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(); |