mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user