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/CodeGen/Analysis.cpp | |
parent | cdd006eec9409923f9a56b9026ce2cb72e7b71dc (diff) | |
download | llvm-fe0006c882f1c134b2abe8552d48c876cde9343d.zip llvm-fe0006c882f1c134b2abe8552d48c876cde9343d.tar.gz llvm-fe0006c882f1c134b2abe8552d48c876cde9343d.tar.bz2 |
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/CodeGen/Analysis.cpp')
-rw-r--r-- | llvm/lib/CodeGen/Analysis.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/Analysis.cpp b/llvm/lib/CodeGen/Analysis.cpp index aa51195..c7aafb0 100644 --- a/llvm/lib/CodeGen/Analysis.cpp +++ b/llvm/lib/CodeGen/Analysis.cpp @@ -25,6 +25,7 @@ #include "llvm/IR/Module.h" #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/MathExtras.h" +#include "llvm/Target/TargetMachine.h" #include "llvm/Transforms/Utils/GlobalStatus.h" using namespace llvm; |