summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/BlockFrequencyInfo.cpp
diff options
context:
space:
mode:
authorTim Shen <timshen91@gmail.com>2016-08-22 21:09:30 +0000
committerTim Shen <timshen91@gmail.com>2016-08-22 21:09:30 +0000
commitf2187ed3210377902124b326957f8721bb58733a (patch)
tree4505affdaf0d52c11907f4132beb6b21aae6a92c /llvm/lib/Analysis/BlockFrequencyInfo.cpp
parentb29ec1e040fb798418eee8a14e13f9df7c372658 (diff)
downloadbcm5719-llvm-f2187ed3210377902124b326957f8721bb58733a.tar.gz
bcm5719-llvm-f2187ed3210377902124b326957f8721bb58733a.zip
[GraphTraits] Replace all NodeType usage with NodeRef
This should finish the GraphTraits migration. Differential Revision: http://reviews.llvm.org/D23730 llvm-svn: 279475
Diffstat (limited to 'llvm/lib/Analysis/BlockFrequencyInfo.cpp')
-rw-r--r--llvm/lib/Analysis/BlockFrequencyInfo.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/llvm/lib/Analysis/BlockFrequencyInfo.cpp b/llvm/lib/Analysis/BlockFrequencyInfo.cpp
index a20c8fb280d..08ace641595 100644
--- a/llvm/lib/Analysis/BlockFrequencyInfo.cpp
+++ b/llvm/lib/Analysis/BlockFrequencyInfo.cpp
@@ -60,20 +60,17 @@ namespace llvm {
template <>
struct GraphTraits<BlockFrequencyInfo *> {
- typedef const BasicBlock NodeType;
typedef const BasicBlock *NodeRef;
typedef succ_const_iterator ChildIteratorType;
typedef pointer_iterator<Function::const_iterator> nodes_iterator;
- static inline const NodeType *getEntryNode(const BlockFrequencyInfo *G) {
+ static inline NodeRef getEntryNode(const BlockFrequencyInfo *G) {
return &G->getFunction()->front();
}
- static ChildIteratorType child_begin(const NodeType *N) {
+ static ChildIteratorType child_begin(const NodeRef N) {
return succ_begin(N);
}
- static ChildIteratorType child_end(const NodeType *N) {
- return succ_end(N);
- }
+ static ChildIteratorType child_end(const NodeRef N) { return succ_end(N); }
static nodes_iterator nodes_begin(const BlockFrequencyInfo *G) {
return nodes_iterator(G->getFunction()->begin());
}
OpenPOWER on IntegriCloud