diff options
author | Chris Lattner <sabre@nondot.org> | 2003-08-05 18:38:37 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-08-05 18:38:37 +0000 |
commit | 61182a2021574b03ef0d13fb7e8401d17f95d4c4 (patch) | |
tree | 899dcbe10d3c70b9b02a851df6aab38c3e395340 /llvm/lib/Analysis/DataStructure | |
parent | 44309a112fdb352e5e5179c2ceea59ced79f0e91 (diff) | |
download | bcm5719-llvm-61182a2021574b03ef0d13fb7e8401d17f95d4c4.tar.gz bcm5719-llvm-61182a2021574b03ef0d13fb7e8401d17f95d4c4.zip |
Add more verbose comment
llvm-svn: 7610
Diffstat (limited to 'llvm/lib/Analysis/DataStructure')
-rw-r--r-- | llvm/lib/Analysis/DataStructure/DataStructure.cpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/llvm/lib/Analysis/DataStructure/DataStructure.cpp b/llvm/lib/Analysis/DataStructure/DataStructure.cpp index f930c0272ed..241c2a9e354 100644 --- a/llvm/lib/Analysis/DataStructure/DataStructure.cpp +++ b/llvm/lib/Analysis/DataStructure/DataStructure.cpp @@ -1582,19 +1582,18 @@ void DSGraph::AssertGraphOK() const { AssertAuxCallNodesInGraph(); } -// A function useful for clients to incorporate the globals graph -// into the DS, BU or TD graph for a function. This code retains -// all globals, i.e., does not delete unreachable globals after they -// are inlined. -// -void DSGraph::mergeInGlobalsGraph() -{ +/// mergeInGlobalsGraph - This method is useful for clients to incorporate the +/// globals graph into the DS, BU or TD graph for a function. This code retains +/// all globals, i.e., does not delete unreachable globals after they are +/// inlined. +/// +void DSGraph::mergeInGlobalsGraph() { NodeMapTy GlobalNodeMap; ScalarMapTy OldValMap; ReturnNodesTy OldRetNodes; - this->cloneInto(*GlobalsGraph, OldValMap, OldRetNodes, GlobalNodeMap, - DSGraph::KeepAllocaBit | DSGraph::DontCloneCallNodes | - DSGraph::DontCloneAuxCallNodes); + cloneInto(*GlobalsGraph, OldValMap, OldRetNodes, GlobalNodeMap, + DSGraph::KeepAllocaBit | DSGraph::DontCloneCallNodes | + DSGraph::DontCloneAuxCallNodes); // Now merge existing global nodes in the GlobalsGraph with their copies for (ScalarMapTy::iterator I = ScalarMap.begin(), E = ScalarMap.end(); |