From e710c5e02491f1f3dc8ac7dcc5988969d2667260 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Thu, 23 Jul 2020 12:31:12 +0100 Subject: [PATCH] ValueProfileCollector.h - remove unnecessary includes. NFC. --- lib/Transforms/Instrumentation/ValueProfileCollector.cpp | 2 +- lib/Transforms/Instrumentation/ValueProfileCollector.h | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/Transforms/Instrumentation/ValueProfileCollector.cpp b/lib/Transforms/Instrumentation/ValueProfileCollector.cpp index cd4f636ff13..fb6216bb217 100644 --- a/lib/Transforms/Instrumentation/ValueProfileCollector.cpp +++ b/lib/Transforms/Instrumentation/ValueProfileCollector.cpp @@ -11,10 +11,10 @@ //===----------------------------------------------------------------------===// #include "ValueProfilePlugins.inc" +#include "llvm/IR/Function.h" #include "llvm/IR/InstIterator.h" #include "llvm/IR/IntrinsicInst.h" #include "llvm/InitializePasses.h" - #include using namespace llvm; diff --git a/lib/Transforms/Instrumentation/ValueProfileCollector.h b/lib/Transforms/Instrumentation/ValueProfileCollector.h index c3f549c2e7c..584a60ab451 100644 --- a/lib/Transforms/Instrumentation/ValueProfileCollector.h +++ b/lib/Transforms/Instrumentation/ValueProfileCollector.h @@ -17,13 +17,16 @@ #define LLVM_ANALYSIS_PROFILE_GEN_ANALYSIS_H #include "llvm/Analysis/TargetLibraryInfo.h" -#include "llvm/IR/Function.h" -#include "llvm/IR/PassManager.h" -#include "llvm/Pass.h" #include "llvm/ProfileData/InstrProf.h" +#include +#include namespace llvm { +class Function; +class Instruction; +class Value; + /// Utility analysis that determines what values are worth profiling. /// The actual logic is inside the ValueProfileCollectorImpl, whose job is to /// populate the Candidates vector.