[Mlir-commits] [mlir] 6d15451 - [mlir] Make PassManager.h self-contained
Kadir Cetinkaya
llvmlistbot at llvm.org
Fri Jun 5 03:02:34 PDT 2020
Author: Kadir Cetinkaya
Date: 2020-06-05T12:02:24+02:00
New Revision: 6d15451b175293cc98ef1d0fd9869ac71904e3bd
URL: https://github.com/llvm/llvm-project/commit/6d15451b175293cc98ef1d0fd9869ac71904e3bd
DIFF: https://github.com/llvm/llvm-project/commit/6d15451b175293cc98ef1d0fd9869ac71904e3bd.diff
LOG: [mlir] Make PassManager.h self-contained
Forward declaring llvm::errs is not enough, as it is used as a default
parameter with a type that references the base class. So the class
hierarchy must be visible.
Added:
Modified:
mlir/include/mlir/Pass/PassManager.h
Removed:
################################################################################
diff --git a/mlir/include/mlir/Pass/PassManager.h b/mlir/include/mlir/Pass/PassManager.h
index 14f2da3ebf83..74fc77215434 100644
--- a/mlir/include/mlir/Pass/PassManager.h
+++ b/mlir/include/mlir/Pass/PassManager.h
@@ -13,14 +13,13 @@
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/iterator.h"
+#include "llvm/Support/raw_ostream.h"
#include <functional>
#include <vector>
namespace llvm {
class Any;
-class raw_fd_ostream;
-raw_fd_ostream &errs();
} // end namespace llvm
namespace mlir {
More information about the Mlir-commits
mailing list