[Attributor] Don't print the call-graph in a hard-coded file.
authorHaojian Wu <hokein.wu@gmail.com>
Fri, 18 Jun 2021 07:18:03 +0000 (09:18 +0200)
committerHaojian Wu <hokein.wu@gmail.com>
Fri, 18 Jun 2021 07:38:07 +0000 (09:38 +0200)
commit7670938bbad8755a34a282febc852651255c69b3
treed003e2e30cda1c6f9b12a5e2051a702643594e13
parent7a1e4f18468d0f25407b6ea9f7986cf2a4620f54
[Attributor] Don't print the call-graph in a hard-coded file.

This looks like not a practical pattern in our codebase (it could fail
in some sandbox environement).

Instead we print it via standard output, and it is controled by the
-attributor-print-call-graph, this follows a similiar pattern of attributor-print-dep.
llvm/lib/Transforms/IPO/AttributorAttributes.cpp
llvm/test/Transforms/Attributor/callgraph.ll