diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-02-13 22:58:43 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-02-13 22:58:43 +0000 |
commit | 3f7f883e060923a0844971e0a8a16e459ef9e099 (patch) | |
tree | e584cbcf955d9dd22a170d5662980d25d661f965 /llvm/lib/ExecutionEngine/ExecutionEngineBindings.cpp | |
parent | 08ba012973c80b098b7441a8ce0ee40194596ed4 (diff) | |
download | bcm5719-llvm-3f7f883e060923a0844971e0a8a16e459ef9e099.tar.gz bcm5719-llvm-3f7f883e060923a0844971e0a8a16e459ef9e099.zip |
Support: Fix incremental build when re-configuring targets
r180893 added an indirect include of llvm/Config/Targets.def to
llvm/Support/CodeGen.h, which in turn is included by things like
llvm/IR/Module.h. After a full build of LLVM and Clang, ninja had to
rebuild 1274 files after reconfiguring.
This commit strips CodeGen.h back down to just a pile of enums and moves
the expensive includes over to CodeGenCWrappers.h (which is only
included in two places). This gets ninja down to 88 files if you
reconfigure with, e.g., -DLLVM_TARGETS_TO_BUILD=X86.
llvm-svn: 260835
Diffstat (limited to 'llvm/lib/ExecutionEngine/ExecutionEngineBindings.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/ExecutionEngineBindings.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/ExecutionEngineBindings.cpp b/llvm/lib/ExecutionEngine/ExecutionEngineBindings.cpp index 3b2eb16c024..d6b209a91d7 100644 --- a/llvm/lib/ExecutionEngine/ExecutionEngineBindings.cpp +++ b/llvm/lib/ExecutionEngine/ExecutionEngineBindings.cpp @@ -17,6 +17,7 @@ #include "llvm/ExecutionEngine/RTDyldMemoryManager.h" #include "llvm/IR/DerivedTypes.h" #include "llvm/IR/Module.h" +#include "llvm/Support/CodeGenCWrappers.h" #include "llvm/Support/ErrorHandling.h" #include "llvm/Target/TargetOptions.h" #include <cstring> |