summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Transforms/ViewFunctionGraph.cpp
diff options
context:
space:
mode:
authorChris Lattner <clattner@google.com>2019-03-21 17:53:00 -0700
committerjpienaar <jpienaar@google.com>2019-03-29 17:30:30 -0700
commit3d6c74fff5347cf11b9cc4149601499d048e51b8 (patch)
treee22a83e28fd6440180bd6c87d9f4dea17928f60f /mlir/lib/Transforms/ViewFunctionGraph.cpp
parent6ab2984b23c86de626f2c99473e1733cc2ebfad0 (diff)
downloadbcm5719-llvm-3d6c74fff5347cf11b9cc4149601499d048e51b8.tar.gz
bcm5719-llvm-3d6c74fff5347cf11b9cc4149601499d048e51b8.zip
Remove const from mlir::Block.
This also eliminates some incorrect reinterpret_cast logic working around it, and numerous const-incorrect issues (like block argument iteration). PiperOrigin-RevId: 239712029
Diffstat (limited to 'mlir/lib/Transforms/ViewFunctionGraph.cpp')
-rw-r--r--mlir/lib/Transforms/ViewFunctionGraph.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/lib/Transforms/ViewFunctionGraph.cpp b/mlir/lib/Transforms/ViewFunctionGraph.cpp
index f4e8e44cfdc..834424951bf 100644
--- a/mlir/lib/Transforms/ViewFunctionGraph.cpp
+++ b/mlir/lib/Transforms/ViewFunctionGraph.cpp
@@ -28,10 +28,10 @@ template <>
struct llvm::DOTGraphTraits<Function *> : public DefaultDOTGraphTraits {
using DefaultDOTGraphTraits::DefaultDOTGraphTraits;
- static std::string getNodeLabel(const Block *Block, Function *);
+ static std::string getNodeLabel(Block *Block, Function *);
};
-std::string llvm::DOTGraphTraits<Function *>::getNodeLabel(const Block *Block,
+std::string llvm::DOTGraphTraits<Function *>::getNodeLabel(Block *Block,
Function *) {
// Reuse the print output for the node labels.
std::string outStreamStr;
OpenPOWER on IntegriCloud