summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-reduce/deltas/ReduceFunctions.cpp
diff options
context:
space:
mode:
authorDiego Trevino Ferrer <diegof30@gmail.com>2019-08-15 22:39:43 +0000
committerDiego Trevino Ferrer <diegof30@gmail.com>2019-08-15 22:39:43 +0000
commitc26892538e84a56d0985486b273c2cfb77611292 (patch)
tree391c61e9df03b3ca350eec1a68af5c215c9c21cf /llvm/tools/llvm-reduce/deltas/ReduceFunctions.cpp
parentf64dcdea6da47c47be055b33f77fb161f8d2e29e (diff)
downloadbcm5719-llvm-c26892538e84a56d0985486b273c2cfb77611292.tar.gz
bcm5719-llvm-c26892538e84a56d0985486b273c2cfb77611292.zip
[Bugpoint redesign] Output option can now print to STDOUT
Summary: This also changes all the outs() statements to errs() so the output and progress streams don't get mixed. This has been added because D64176 had flaky tests, which I believe were because the reduced file was being catted into `FileCheck`, instead of being pass from STDOUT directly. Reviewers: chandlerc, dblaikie, xbolva00 Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D66314 llvm-svn: 369060
Diffstat (limited to 'llvm/tools/llvm-reduce/deltas/ReduceFunctions.cpp')
-rw-r--r--llvm/tools/llvm-reduce/deltas/ReduceFunctions.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/tools/llvm-reduce/deltas/ReduceFunctions.cpp b/llvm/tools/llvm-reduce/deltas/ReduceFunctions.cpp
index 52777bed640..90937d5476c 100644
--- a/llvm/tools/llvm-reduce/deltas/ReduceFunctions.cpp
+++ b/llvm/tools/llvm-reduce/deltas/ReduceFunctions.cpp
@@ -54,19 +54,19 @@ static void extractFunctionsFromModule(const std::vector<Chunk> &ChunksToKeep,
/// respective name & index
static unsigned countFunctions(Module *Program) {
// TODO: Silence index with --quiet flag
- outs() << "----------------------------\n";
- outs() << "Function Index Reference:\n";
+ errs() << "----------------------------\n";
+ errs() << "Function Index Reference:\n";
unsigned FunctionCount = 0;
for (auto &F : *Program)
- outs() << "\t" << ++FunctionCount << ": " << F.getName() << "\n";
+ errs() << "\t" << ++FunctionCount << ": " << F.getName() << "\n";
- outs() << "----------------------------\n";
+ errs() << "----------------------------\n";
return FunctionCount;
}
void llvm::reduceFunctionsDeltaPass(TestRunner &Test) {
- outs() << "*** Reducing Functions...\n";
+ errs() << "*** Reducing Functions...\n";
unsigned Functions = countFunctions(Test.getProgram());
runDeltaPass(Test, Functions, extractFunctionsFromModule);
- outs() << "----------------------------\n";
+ errs() << "----------------------------\n";
} \ No newline at end of file
OpenPOWER on IntegriCloud