diff --git a/lib/Transforms/IPO/AttributorAttributes.cpp b/lib/Transforms/IPO/AttributorAttributes.cpp index 42f33a5c47b..2855676a109 100644 --- a/lib/Transforms/IPO/AttributorAttributes.cpp +++ b/lib/Transforms/IPO/AttributorAttributes.cpp @@ -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; diff --git a/test/Transforms/Attributor/callgraph.ll b/test/Transforms/Attributor/callgraph.ll index f3dfab2234d..d48c44c1aab 100644 --- a/test/Transforms/Attributor/callgraph.ll +++ b/test/Transforms/Attributor/callgraph.ll @@ -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(