diff --git a/llvm/include/llvm/Transforms/IPO.h b/llvm/include/llvm/Transforms/IPO.h index 704d09b5f3d85..4995b000c4542 100644 --- a/llvm/include/llvm/Transforms/IPO.h +++ b/llvm/include/llvm/Transforms/IPO.h @@ -20,11 +20,8 @@ namespace llvm { -struct InlineParams; class ModulePass; class Pass; -class BasicBlock; -class GlobalValue; class raw_ostream; //===----------------------------------------------------------------------===// diff --git a/llvm/include/llvm/Transforms/IPO/FunctionAttrs.h b/llvm/include/llvm/Transforms/IPO/FunctionAttrs.h index 0b93bbd6eaa2d..6a21ff616d506 100644 --- a/llvm/include/llvm/Transforms/IPO/FunctionAttrs.h +++ b/llvm/include/llvm/Transforms/IPO/FunctionAttrs.h @@ -26,7 +26,6 @@ class GlobalValueSummary; class ModuleSummaryIndex; class Function; class Module; -class Pass; /// Returns the memory access properties of this copy of the function. MemoryEffects computeFunctionBodyMemoryAccess(Function &F, AAResults &AAR); diff --git a/llvm/include/llvm/Transforms/IPO/Internalize.h b/llvm/include/llvm/Transforms/IPO/Internalize.h index 5beb925bb089d..ece5bfe77b798 100644 --- a/llvm/include/llvm/Transforms/IPO/Internalize.h +++ b/llvm/include/llvm/Transforms/IPO/Internalize.h @@ -28,7 +28,6 @@ namespace llvm { class Module; -class CallGraph; /// A pass that internalizes all functions and variables other than those that /// must be preserved according to \c MustPreserveGV. diff --git a/llvm/include/llvm/Transforms/IPO/WholeProgramDevirt.h b/llvm/include/llvm/Transforms/IPO/WholeProgramDevirt.h index bfa84b8015b3c..9e121d9c6f4ed 100644 --- a/llvm/include/llvm/Transforms/IPO/WholeProgramDevirt.h +++ b/llvm/include/llvm/Transforms/IPO/WholeProgramDevirt.h @@ -28,7 +28,6 @@ class Module; template class ArrayRef; template class MutableArrayRef; -class Function; class GlobalVariable; class ModuleSummaryIndex; struct ValueInfo;