projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
846909e
)
[mlir] Make PassManager.h self-contained
author
Kadir Cetinkaya
<kadircet@google.com>
Fri, 5 Jun 2020 10:01:03 +0000
(12:01 +0200)
committer
Kadir Cetinkaya
<kadircet@google.com>
Fri, 5 Jun 2020 10:02:24 +0000
(12:02 +0200)
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.
mlir/include/mlir/Pass/PassManager.h
patch
|
blob
|
history
diff --git
a/mlir/include/mlir/Pass/PassManager.h
b/mlir/include/mlir/Pass/PassManager.h
index
14f2da3
..
74fc772
100644
(file)
--- 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 {