Added function IsLeafMethod to identify leaf methods.

This will use the CallGraph only if one is provided.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@950 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Vikram S. Adve
2001-10-22 13:55:46 +00:00
parent ac0ec47957
commit a7edb1888c
2 changed files with 37 additions and 0 deletions

View File

@ -89,4 +89,18 @@ private: // Implementation of CallGraph construction
} // end namespace cfg
//******************* Externally Visible Functions *************************/
// Checks if a method contains any call instructions.
// Note that this uses the call graph only if one is provided.
// It does not build the call graph.
//
bool IsLeafMethod (const Method* method,
const cfg::CallGraph* callGraph = NULL);
//**************************************************************************/
#endif