[Lldb-commits] [lldb] r154885 - /lldb/trunk/source/Expression/ClangExpressionParser.cpp
Sean Callanan
scallanan at apple.com
Mon Apr 16 17:49:48 PDT 2012
Author: spyffe
Date: Mon Apr 16 19:49:48 2012
New Revision: 154885
URL: http://llvm.org/viewvc/llvm-project?rev=154885&view=rev
Log:
Disabled spell checking in the expression parser,
which incurs large overheads in terms of type
parsing and importing.
Modified:
lldb/trunk/source/Expression/ClangExpressionParser.cpp
Modified: lldb/trunk/source/Expression/ClangExpressionParser.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ClangExpressionParser.cpp?rev=154885&r1=154884&r2=154885&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangExpressionParser.cpp (original)
+++ lldb/trunk/source/Expression/ClangExpressionParser.cpp Mon Apr 16 19:49:48 2012
@@ -228,6 +228,12 @@
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();
More information about the lldb-commits
mailing list