[llvm-commits] [poolalloc] r112526 - /poolalloc/trunk/lib/DSA/DSCallGraph.cpp
John Criswell
criswell at uiuc.edu
Mon Aug 30 14:14:14 PDT 2010
Author: criswell
Date: Mon Aug 30 16:14:14 2010
New Revision: 112526
URL: http://llvm.org/viewvc/llvm-project?rev=112526&view=rev
Log:
Inserted comment and improved formatting.
No functionality changes.
Modified:
poolalloc/trunk/lib/DSA/DSCallGraph.cpp
Modified: poolalloc/trunk/lib/DSA/DSCallGraph.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/DSCallGraph.cpp?rev=112526&r1=112525&r2=112526&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/DSCallGraph.cpp (original)
+++ poolalloc/trunk/lib/DSA/DSCallGraph.cpp Mon Aug 30 16:14:14 2010
@@ -205,8 +205,22 @@
llvm::errs() << "\n";
}
-//Filter all call edges. We only want pointer edges.
-void DSCallGraph::insert(llvm::CallSite CS, const llvm::Function* F) {
+//
+// Method: insert()
+//
+// Description:
+// Insert a new entry into the call graph. This entry says that the specified
+// call site calls the specified function.
+//
+// Inputs:
+// CS - The call site which calls the specified function.
+// F - The function which is called. This is permitted to be NULL. It is
+// possible to have call sites that don't have any targets, and sometimes
+// users just want to ensure that a call site has an entry within the
+// call graph.
+//
+void
+DSCallGraph::insert(llvm::CallSite CS, const llvm::Function* F) {
//
// Find the function to which the call site belongs.
//
More information about the llvm-commits
mailing list