[llvm] 7a414ae - Remove forward declarations of llvm::Any

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 11 23:52:16 PDT 2023


Author: Kazu Hirata
Date: 2023-04-11T23:52:05-07:00
New Revision: 7a414ae26ef4cf2b0141eefebd4306e05c431a68

URL: https://github.com/llvm/llvm-project/commit/7a414ae26ef4cf2b0141eefebd4306e05c431a68
DIFF: https://github.com/llvm/llvm-project/commit/7a414ae26ef4cf2b0141eefebd4306e05c431a68.diff

LOG: 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.

Added: 
    

Modified: 
    llvm/include/llvm/Transforms/IPO/SampleProfileProbe.h
    mlir/include/mlir/Pass/PassManager.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Transforms/IPO/SampleProfileProbe.h b/llvm/include/llvm/Transforms/IPO/SampleProfileProbe.h
index ebac3d6a24ef9..bd511f7609820 100644
--- a/llvm/include/llvm/Transforms/IPO/SampleProfileProbe.h
+++ b/llvm/include/llvm/Transforms/IPO/SampleProfileProbe.h
@@ -22,7 +22,6 @@
 #include <unordered_map>
 
 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 c7cf37af0dc03..75fe1524221c1 100644
--- a/mlir/include/mlir/Pass/PassManager.h
+++ b/mlir/include/mlir/Pass/PassManager.h
@@ -21,10 +21,6 @@
 #include <vector>
 #include <optional>
 
-namespace llvm {
-class Any;
-} // namespace llvm
-
 namespace mlir {
 class AnalysisManager;
 class MLIRContext;


        


More information about the llvm-commits mailing list