mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
[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.
This commit is contained in:
parent
da9f3ec14e
commit
a8d4c2a73b
@ -8256,11 +8256,7 @@ AACallGraphNode *AACallEdgeIterator::operator*() const {
|
||||
}
|
||||
|
||||
void AttributorCallGraph::print() {
|
||||
std::string Filename = "AttributorCallGraph.dot";
|
||||
std::error_code EC;
|
||||
|
||||
raw_fd_ostream File(Filename, EC, sys::fs::OF_TextWithCRLF);
|
||||
llvm::WriteGraph(File, this);
|
||||
llvm::WriteGraph(outs(), this);
|
||||
}
|
||||
|
||||
const char AAReturnedValues::ID = 0;
|
||||
|
@ -1,7 +1,6 @@
|
||||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt -passes=attributor -attributor-print-call-graph -S < %s | FileCheck %s --check-prefixes=CHECK
|
||||
; RUN: FileCheck %s -input-file=AttributorCallGraph.dot --check-prefix=DOT
|
||||
|
||||
; RUN: opt -passes=attributor -S < %s | FileCheck %s --check-prefixes=CHECK
|
||||
; RUN: opt -passes=attributor -attributor-print-call-graph -S -disable-output < %s | FileCheck %s --check-prefixes=DOT
|
||||
|
||||
define dso_local void @func1() {
|
||||
; CHECK-LABEL: @func1(
|
||||
|
Loading…
Reference in New Issue
Block a user