diff options
| author | Reid Kleckner <reid@kleckner.net> | 2013-06-17 12:56:08 +0000 |
|---|---|---|
| committer | Reid Kleckner <reid@kleckner.net> | 2013-06-17 12:56:08 +0000 |
| commit | cff15128c6c089bd6fae841b80680e6f5afbf0bf (patch) | |
| tree | 26bafc25f637ed74dafb337c58580f2ceefce0bf /lib/CodeGen/CodeGenFunction.cpp | |
| parent | 375a040d49049c90b29b80cde480025f4ba5a717 (diff) | |
| download | clang-cff15128c6c089bd6fae841b80680e6f5afbf0bf.tar.gz clang-cff15128c6c089bd6fae841b80680e6f5afbf0bf.tar.bz2 clang-cff15128c6c089bd6fae841b80680e6f5afbf0bf.tar.xz | |
[AST] Don't include RecursiveASTVisitor.h in ASTContext.h
The untemplated implementation of getParents() doesn't need to be in a
header file.
RecursiveASTVisitor.h is full of repeated macro expansion. Moving this
include to ASTContext.cpp speeds up compilation of
LambdaMangleContext.cpp, a small C++ file with few includes, from 3.7s
to 2.8s for me locally. I haven't measured a full build, but it can't
hurt.
I had to fix a few static analyzer files that were depending on
transitive includes of C++ AST headers.
Reviewers: rsmith, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D982
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184075 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
