From 7a414ae26ef4cf2b0141eefebd4306e05c431a68 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 11 Apr 2023 23:52:05 -0700 Subject: [PATCH] Remove forward declarations of llvm::Any This patch removes forward declarations of llvm::Any as they are not used. Removing them gets us a bit closer to the world where we use std::any instead of llvm::Any because we won't forward-declare std:: classes. --- llvm/include/llvm/Transforms/IPO/SampleProfileProbe.h | 1 - mlir/include/mlir/Pass/PassManager.h | 4 ---- 2 files changed, 5 deletions(-) diff --git a/llvm/include/llvm/Transforms/IPO/SampleProfileProbe.h b/llvm/include/llvm/Transforms/IPO/SampleProfileProbe.h index ebac3d6..bd511f7 100644 --- a/llvm/include/llvm/Transforms/IPO/SampleProfileProbe.h +++ b/llvm/include/llvm/Transforms/IPO/SampleProfileProbe.h @@ -22,7 +22,6 @@ #include namespace llvm { -class Any; class BasicBlock; class Function; class Instruction; diff --git a/mlir/include/mlir/Pass/PassManager.h b/mlir/include/mlir/Pass/PassManager.h index c7cf37a..75fe152 100644 --- a/mlir/include/mlir/Pass/PassManager.h +++ b/mlir/include/mlir/Pass/PassManager.h @@ -21,10 +21,6 @@ #include #include -namespace llvm { -class Any; -} // namespace llvm - namespace mlir { class AnalysisManager; class MLIRContext; -- 2.7.4