summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Transforms/ViewFunctionGraph.cpp
diff options
context:
space:
mode:
authorRiver Riddle <riverriddle@google.com>2019-02-28 14:50:42 -0800
committerjpienaar <jpienaar@google.com>2019-03-29 16:50:44 -0700
commited5fe2098be12d839cb4384e59a93f15f6f42e58 (patch)
treecf8d1cce87c0aff6af00fd90f0f42ff9f44e3212 /mlir/lib/Transforms/ViewFunctionGraph.cpp
parent58889884a254894342b589309064782be64c3afd (diff)
downloadbcm5719-llvm-ed5fe2098be12d839cb4384e59a93f15f6f42e58.tar.gz
bcm5719-llvm-ed5fe2098be12d839cb4384e59a93f15f6f42e58.zip
Remove PassResult and have the runOnFunction/runOnModule functions return void instead. To signal a pass failure, passes should now invoke the 'signalPassFailure' method. This provides the equivalent functionality when needed, but isn't an intrusive part of the API like PassResult.
PiperOrigin-RevId: 236202029
Diffstat (limited to 'mlir/lib/Transforms/ViewFunctionGraph.cpp')
-rw-r--r--mlir/lib/Transforms/ViewFunctionGraph.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/mlir/lib/Transforms/ViewFunctionGraph.cpp b/mlir/lib/Transforms/ViewFunctionGraph.cpp
index 30fae94139f..b2dfe6795b6 100644
--- a/mlir/lib/Transforms/ViewFunctionGraph.cpp
+++ b/mlir/lib/Transforms/ViewFunctionGraph.cpp
@@ -77,9 +77,8 @@ struct PrintCFGPass : public FunctionPass<PrintCFGPass> {
PrintCFGPass(llvm::raw_ostream &os = llvm::errs(), bool shortNames = false,
const llvm::Twine &title = "")
: os(os), shortNames(shortNames), title(title) {}
- PassResult runOnFunction() {
+ void runOnFunction() {
mlir::writeGraph(os, &getFunction(), shortNames, title);
- return success();
}
private:
OpenPOWER on IntegriCloud