mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +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);
|
void initialize(Module &M);
|
||||||
|
|
||||||
virtual void print(std::ostream &o, const Module *M) const;
|
virtual void print(std::ostream &o, const Module *M) const;
|
||||||
|
void dump() const;
|
||||||
|
|
||||||
// stub - dummy function, just ignore it
|
// stub - dummy function, just ignore it
|
||||||
static void stub();
|
static void stub();
|
||||||
protected:
|
protected:
|
||||||
|
@ -216,6 +216,10 @@ void CallGraph::print(std::ostream &OS, const Module *M) const {
|
|||||||
I->second->print(OS);
|
I->second->print(OS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CallGraph::dump() const {
|
||||||
|
print(std::cerr, 0);
|
||||||
|
}
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// Implementations of public modification methods
|
// Implementations of public modification methods
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user