diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-01-03 19:44:02 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-01-03 19:44:02 +0000 |
| commit | 76dbe8c800c818d4ebe414999cf9e44834bb31a7 (patch) | |
| tree | 9744d27793db2969e1f6473160b0c0c0dac5cfe5 /llvm/lib/CodeGen/MachineFunctionPass.cpp | |
| parent | 968f23ab97f1a6ee606c79911eec53c1b5d9f717 (diff) | |
| download | llvm-76dbe8c800c818d4ebe414999cf9e44834bb31a7.zip llvm-76dbe8c800c818d4ebe414999cf9e44834bb31a7.tar.gz llvm-76dbe8c800c818d4ebe414999cf9e44834bb31a7.tar.bz2 | |
Speed up code-completion by skipping function bodies.
When we are in code-completion mode, skip parsing of all function bodies except the one where the
code-completion point resides.
For big .cpp files like 'SemaExpr.cpp' the improvement makes a huge difference, in some cases cutting down
code-completion time -62% !
We don't get diagnostics for the bodies though, so modify the code-completion tests that check for errors.
See rdar://8814203.
llvm-svn: 122765
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunctionPass.cpp')
0 files changed, 0 insertions, 0 deletions
