aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-02-03 18:40:05 +0000
committerChris Lattner <sabre@nondot.org>2005-02-03 18:40:05 +0000
commit3a826203c76137fc231b8c80fd506a3963b9a3c0 (patch)
treecd5d45a9ca5099b430ad2b45e8e9881dda261d67 /include
parent8f0cad17cab62fdfee92af58748da244c38db1ea (diff)
downloadexternal_llvm-3a826203c76137fc231b8c80fd506a3963b9a3c0.zip
external_llvm-3a826203c76137fc231b8c80fd506a3963b9a3c0.tar.gz
external_llvm-3a826203c76137fc231b8c80fd506a3963b9a3c0.tar.bz2
Add a new method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20017 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/DataStructure/DSGraph.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/llvm/Analysis/DataStructure/DSGraph.h b/include/llvm/Analysis/DataStructure/DSGraph.h
index 49c71f0..5b9b89f 100644
--- a/include/llvm/Analysis/DataStructure/DSGraph.h
+++ b/include/llvm/Analysis/DataStructure/DSGraph.h
@@ -375,6 +375,15 @@ public:
ReturnNodesTy &OldReturnNodes, NodeMapTy &OldNodeMap,
unsigned CloneFlags = 0);
+ /// getFunctionArgumentsForCall - Given a function that is currently in this
+ /// graph, return the DSNodeHandles that correspond to the pointer-compatible
+ /// function arguments. The vector is filled in with the return value (or
+ /// null if it is not pointer compatible), followed by all of the
+ /// pointer-compatible arguments.
+ void getFunctionArgumentsForCall(Function *F,
+ std::vector<DSNodeHandle> &Args) const;
+
+
/// mergeInGraph - The method is used for merging graphs together. If the
/// argument graph is not *this, it makes a clone of the specified graph, then
/// merges the nodes specified in the call site with the formal arguments in