diff options
| author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2020-05-23 19:49:38 +0100 |
|---|---|---|
| committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2020-05-23 19:49:38 +0100 |
| commit | fe0006c882f1c134b2abe8552d48c876cde9343d (patch) | |
| tree | ebe480c664ba37566c89574587cca949c84f928e /llvm/lib/LTO/UpdateCompilerUsed.cpp | |
| parent | cdd006eec9409923f9a56b9026ce2cb72e7b71dc (diff) | |
| download | llvm-fe0006c882f1c134b2abe8552d48c876cde9343d.tar.gz llvm-fe0006c882f1c134b2abe8552d48c876cde9343d.tar.bz2 llvm-fe0006c882f1c134b2abe8552d48c876cde9343d.zip | |
TargetLowering.h - remove unnecessary TargetMachine.h include. NFC
Replace with forward declaration and move dependency down to source files that actually need it.
Both TargetLowering.h and TargetMachine.h are 2 of the most expensive headers (top 10) in the ClangBuildAnalyzer report when building llc.
Diffstat (limited to 'llvm/lib/LTO/UpdateCompilerUsed.cpp')
| -rw-r--r-- | llvm/lib/LTO/UpdateCompilerUsed.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/LTO/UpdateCompilerUsed.cpp b/llvm/lib/LTO/UpdateCompilerUsed.cpp index 6434f902088d..040e1106523c 100644 --- a/llvm/lib/LTO/UpdateCompilerUsed.cpp +++ b/llvm/lib/LTO/UpdateCompilerUsed.cpp @@ -17,6 +17,7 @@ #include "llvm/IR/LegacyPassManager.h" #include "llvm/IR/Mangler.h" #include "llvm/Transforms/Utils/ModuleUtils.h" +#include "llvm/Target/TargetMachine.h" using namespace llvm; |
