diff options
Diffstat (limited to 'src/passes/PrintCallGraph.cpp')
-rw-r--r-- | src/passes/PrintCallGraph.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/passes/PrintCallGraph.cpp b/src/passes/PrintCallGraph.cpp index 49e056312..d70e0d7f2 100644 --- a/src/passes/PrintCallGraph.cpp +++ b/src/passes/PrintCallGraph.cpp @@ -96,12 +96,10 @@ struct PrintCallGraph : public Pass { CallPrinter printer(module); // Indirect Targets - for (auto& table : module->tables) { - for (auto& segment : table->segments) { - for (auto& curr : segment.data) { - auto* func = module->getFunction(curr); - o << " \"" << func->name << "\" [style=\"filled, rounded\"];\n"; - } + for (auto& segment : module->elementSegments) { + for (auto& curr : segment->data) { + auto* func = module->getFunction(curr); + o << " \"" << func->name << "\" [style=\"filled, rounded\"];\n"; } } |