summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2017-05-11 23:59:05 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2017-05-11 23:59:05 +0000
commitf3e9f12296cb8a5f4d1a0a6d51df654ec6b2d790 (patch)
treefc1e77a9253557a24612f66ca4b753c4c83b818c /llvm/include
parent8d1c983f451f9256062bd92ba8358723c7254216 (diff)
downloadbcm5719-llvm-f3e9f12296cb8a5f4d1a0a6d51df654ec6b2d790.tar.gz
bcm5719-llvm-f3e9f12296cb8a5f4d1a0a6d51df654ec6b2d790.zip
CallGraph: Remove almost-unused field 'Root'.
llvm-svn: 302852
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/Analysis/CallGraph.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/include/llvm/Analysis/CallGraph.h b/llvm/include/llvm/Analysis/CallGraph.h
index cc4788d3eda..01469a25c96 100644
--- a/llvm/include/llvm/Analysis/CallGraph.h
+++ b/llvm/include/llvm/Analysis/CallGraph.h
@@ -41,12 +41,6 @@
/// of all of the caller-callee relationships, which is useful for
/// transformations.
///
-/// The CallGraph class also attempts to figure out what the root of the
-/// CallGraph is, which it currently does by looking for a function named
-/// 'main'. If no function named 'main' is found, the external node is used as
-/// the entry node, reflecting the fact that any function without internal
-/// linkage could be called into (which is common for libraries).
-///
//===----------------------------------------------------------------------===//
#ifndef LLVM_ANALYSIS_CALLGRAPH_H
@@ -82,10 +76,6 @@ class CallGraph {
/// \brief A map from \c Function* to \c CallGraphNode*.
FunctionMapTy FunctionMap;
- /// \brief Root is root of the call graph, or the external node if a 'main'
- /// function couldn't be found.
- CallGraphNode *Root;
-
/// \brief This node has edges to all external functions and those internal
/// functions that have their address taken.
CallGraphNode *ExternalCallingNode;
OpenPOWER on IntegriCloud