mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-19 01:13:25 +00:00
add a dump method to CallGraph
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25314 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3a04ffbf6d
commit
1694ec615f
@ -147,7 +147,8 @@ public:
|
||||
void initialize(Module &M);
|
||||
|
||||
virtual void print(std::ostream &o, const Module *M) const;
|
||||
|
||||
void dump() const;
|
||||
|
||||
// stub - dummy function, just ignore it
|
||||
static void stub();
|
||||
protected:
|
||||
|
@ -216,6 +216,10 @@ void CallGraph::print(std::ostream &OS, const Module *M) const {
|
||||
I->second->print(OS);
|
||||
}
|
||||
|
||||
void CallGraph::dump() const {
|
||||
print(std::cerr, 0);
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Implementations of public modification methods
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user