1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Allow getting the module from a call graph

llvm-svn: 13086
This commit is contained in:
Chris Lattner 2004-04-20 21:52:12 +00:00
parent ce041cae67
commit 522abc00b8

View File

@ -100,6 +100,10 @@ public:
CallGraphNode *getRoot() { return Root; }
const CallGraphNode *getRoot() const { return Root; }
/// getModule - Return the module the call graph corresponds to.
///
Module &getModule() const { return *Mod; }
inline iterator begin() { return FunctionMap.begin(); }
inline iterator end() { return FunctionMap.end(); }
inline const_iterator begin() const { return FunctionMap.begin(); }