summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis
diff options
context:
space:
mode:
authorTim Shen <timshen91@gmail.com>2016-08-17 20:07:29 +0000
committerTim Shen <timshen91@gmail.com>2016-08-17 20:07:29 +0000
commiteb3958fafdb439f963bbd3437ba6cf375304131b (patch)
treed1b319ffcf07ed46797acb5d92384654617823f8 /llvm/lib/Analysis
parentd42d58cf216880b68ca3c4ec0324fd61d5d3d60c (diff)
downloadbcm5719-llvm-eb3958fafdb439f963bbd3437ba6cf375304131b.tar.gz
bcm5719-llvm-eb3958fafdb439f963bbd3437ba6cf375304131b.zip
[GraphWriter] Change GraphWriter to use NodeRef in GraphTraits
Summary: This is part of the "NodeType* -> NodeRef" migration. Notice that since GraphWriter prints object address as identity, I added a static_assert on NodeRef to be a pointer type. Reviewers: dblaikie Subscribers: llvm-commits, MatzeB Differential Revision: https://reviews.llvm.org/D23580 llvm-svn: 278966
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r--llvm/lib/Analysis/BlockFrequencyInfo.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/BlockFrequencyInfo.cpp b/llvm/lib/Analysis/BlockFrequencyInfo.cpp
index 4fef855398e..600f945a8b2 100644
--- a/llvm/lib/Analysis/BlockFrequencyInfo.cpp
+++ b/llvm/lib/Analysis/BlockFrequencyInfo.cpp
@@ -61,6 +61,7 @@ namespace llvm {
template <>
struct GraphTraits<BlockFrequencyInfo *> {
typedef const BasicBlock NodeType;
+ typedef const BasicBlock *NodeRef;
typedef succ_const_iterator ChildIteratorType;
typedef Function::const_iterator nodes_iterator;
OpenPOWER on IntegriCloud