[llvm] 7a3f2a7 - ProfileSummaryInfo.h - reduce unnecessary Function.h include to forward declaration. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 20 07:58:48 PDT 2020
Author: Simon Pilgrim
Date: 2020-06-20T15:57:05+01:00
New Revision: 7a3f2a734a71ac21477d00f6653ab53ea81f3407
URL: https://github.com/llvm/llvm-project/commit/7a3f2a734a71ac21477d00f6653ab53ea81f3407
DIFF: https://github.com/llvm/llvm-project/commit/7a3f2a734a71ac21477d00f6653ab53ea81f3407.diff
LOG: ProfileSummaryInfo.h - reduce unnecessary Function.h include to forward declaration. NFC.
Added:
Modified:
llvm/include/llvm/Analysis/ProfileSummaryInfo.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Analysis/ProfileSummaryInfo.h b/llvm/include/llvm/Analysis/ProfileSummaryInfo.h
index 9fcceb93dbc4..a1fea9fefc9a 100644
--- a/llvm/include/llvm/Analysis/ProfileSummaryInfo.h
+++ b/llvm/include/llvm/Analysis/ProfileSummaryInfo.h
@@ -15,7 +15,6 @@
#define LLVM_ANALYSIS_PROFILE_SUMMARY_INFO_H
#include "llvm/ADT/DenseMap.h"
-#include "llvm/IR/Function.h"
#include "llvm/IR/PassManager.h"
#include "llvm/IR/ProfileSummary.h"
#include "llvm/Pass.h"
@@ -25,7 +24,9 @@ namespace llvm {
class BasicBlock;
class BlockFrequencyInfo;
class CallBase;
+class Function;
class ProfileSummary;
+
/// Analysis providing profile information.
///
/// This is an immutable analysis pass that provides ability to query global
More information about the llvm-commits
mailing list