mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-01 01:30:36 +00:00
add a dump() method on callgraph.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80524 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0665552c61
commit
23603a61c9
@ -156,7 +156,7 @@ public:
|
|||||||
void initialize(Module &M);
|
void initialize(Module &M);
|
||||||
|
|
||||||
void print(raw_ostream &o, Module *) const;
|
void print(raw_ostream &o, Module *) const;
|
||||||
|
void dump() const;
|
||||||
protected:
|
protected:
|
||||||
// destroy - Release memory for the call graph
|
// destroy - Release memory for the call graph
|
||||||
virtual void destroy();
|
virtual void destroy();
|
||||||
|
@ -181,6 +181,9 @@ void CallGraph::print(raw_ostream &OS, Module*) const {
|
|||||||
for (CallGraph::const_iterator I = begin(), E = end(); I != E; ++I)
|
for (CallGraph::const_iterator I = begin(), E = end(); I != E; ++I)
|
||||||
I->second->print(OS);
|
I->second->print(OS);
|
||||||
}
|
}
|
||||||
|
void CallGraph::dump() const {
|
||||||
|
print(errs(), 0);
|
||||||
|
}
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// Implementations of public modification methods
|
// Implementations of public modification methods
|
||||||
|
Loading…
x
Reference in New Issue
Block a user