diff options
author | Dan Gohman <gohman@apple.com> | 2008-07-27 23:12:19 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-07-27 23:12:19 +0000 |
commit | 7953f3781077b6feaba3708fb96ef917f8e8fc89 (patch) | |
tree | ce1fd5704cf4baa12d87e7b1560e1598617a100b | |
parent | 29cdb26bbae007c0c1fe620136f8dfc8a2d1e84d (diff) | |
download | external_llvm-7953f3781077b6feaba3708fb96ef917f8e8fc89.zip external_llvm-7953f3781077b6feaba3708fb96ef917f8e8fc89.tar.gz external_llvm-7953f3781077b6feaba3708fb96ef917f8e8fc89.tar.bz2 |
Don't use reinterpret_cast when it isn't needed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54130 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Support/GraphWriter.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/Support/GraphWriter.h b/include/llvm/Support/GraphWriter.h index 20e85cc..15f9527 100644 --- a/include/llvm/Support/GraphWriter.h +++ b/include/llvm/Support/GraphWriter.h @@ -125,7 +125,7 @@ public: void writeNode(NodeType *Node) { std::string NodeAttributes = DOTTraits::getNodeAttributes(Node, G); - O << "\tNode" << reinterpret_cast<const void*>(Node) << " [shape=record,"; + O << "\tNode" << static_cast<const void*>(Node) << " [shape=record,"; if (!NodeAttributes.empty()) O << NodeAttributes << ","; O << "label=\"{"; @@ -199,8 +199,8 @@ public: DestPort = static_cast<int>(Offset); } - emitEdge(reinterpret_cast<const void*>(Node), edgeidx, - reinterpret_cast<const void*>(TargetNode), DestPort, + emitEdge(static_cast<const void*>(Node), edgeidx, + static_cast<const void*>(TargetNode), DestPort, DOTTraits::getEdgeAttributes(Node, EI)); } } @@ -238,7 +238,7 @@ public: O << "\tNode" << SrcNodeID; if (SrcNodePort >= 0) O << ":s" << SrcNodePort; - O << " -> Node" << reinterpret_cast<const void*>(DestNodeID); + O << " -> Node" << DestNodeID; if (DestNodePort >= 0) O << ":d" << DestNodePort; |