HomePhabricator

[CallGraph] Given -print-callgraph a stable printing order.

Description

[CallGraph] Given -print-callgraph a stable printing order.

Summary:
Since FunctionMap has llvm::Function pointers as keys, the order in
which the traversal happens can differ from run to run, causing spurious
FileCheck failures. Have CallGraph::print sort the CallGraphNodes by
name before printing them.

Reviewers: bogner, chandlerc

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D10575

Details

Committed
sanjoyJun 19 2015, 4:20 PM
Differential Revision
D10575: [CallGraph] Given -print-callgraph a stable printing order.
Parents
rL240190: Try to fix the MSVC build
Branches
Unknown
Tags
Unknown