From fe0006c882f1c134b2abe8552d48c876cde9343d Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Sat, 23 May 2020 19:49:38 +0100 Subject: 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. --- llvm/lib/CodeGen/LiveDebugValues.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib/CodeGen/LiveDebugValues.cpp') diff --git a/llvm/lib/CodeGen/LiveDebugValues.cpp b/llvm/lib/CodeGen/LiveDebugValues.cpp index fdea702..470cb22 100644 --- a/llvm/lib/CodeGen/LiveDebugValues.cpp +++ b/llvm/lib/CodeGen/LiveDebugValues.cpp @@ -64,6 +64,7 @@ #include "llvm/Support/Compiler.h" #include "llvm/Support/Debug.h" #include "llvm/Support/raw_ostream.h" +#include "llvm/Target/TargetMachine.h" #include #include #include -- cgit v1.1