diff options
| author | Uday Bondhugula <bondhugula@google.com> | 2019-03-05 15:05:34 -0800 |
|---|---|---|
| committer | jpienaar <jpienaar@google.com> | 2019-03-29 16:58:35 -0700 |
| commit | 02af8c22df523d7cda4399058e0a0945d54f4972 (patch) | |
| tree | b49de902095777a37a8f109f3506147190134fc3 /mlir/lib/Transforms/ViewFunctionGraph.cpp | |
| parent | 73e0297d36452555cb9552827c498c8bde1a5f74 (diff) | |
| download | bcm5719-llvm-02af8c22df523d7cda4399058e0a0945d54f4972.tar.gz bcm5719-llvm-02af8c22df523d7cda4399058e0a0945d54f4972.zip | |
Change Pass:getFunction() to return pointer instead of ref - NFC
- change this for consistency - everything else similar takes/returns a
Function pointer - the FuncBuilder ctor,
Block/Value/Instruction::getFunction(), etc.
- saves a whole bunch of &s everywhere
PiperOrigin-RevId: 236928761
Diffstat (limited to 'mlir/lib/Transforms/ViewFunctionGraph.cpp')
| -rw-r--r-- | mlir/lib/Transforms/ViewFunctionGraph.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Transforms/ViewFunctionGraph.cpp b/mlir/lib/Transforms/ViewFunctionGraph.cpp index b2dfe6795b6..d77e96a99d7 100644 --- a/mlir/lib/Transforms/ViewFunctionGraph.cpp +++ b/mlir/lib/Transforms/ViewFunctionGraph.cpp @@ -78,7 +78,7 @@ struct PrintCFGPass : public FunctionPass<PrintCFGPass> { const llvm::Twine &title = "") : os(os), shortNames(shortNames), title(title) {} void runOnFunction() { - mlir::writeGraph(os, &getFunction(), shortNames, title); + mlir::writeGraph(os, getFunction(), shortNames, title); } private: |

