summaryrefslogtreecommitdiff
path: root/bolt/lib/Passes/ThreeWayBranch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bolt/lib/Passes/ThreeWayBranch.cpp')
-rw-r--r--bolt/lib/Passes/ThreeWayBranch.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/bolt/lib/Passes/ThreeWayBranch.cpp b/bolt/lib/Passes/ThreeWayBranch.cpp
index dc320d53fb68..c69eac5614b9 100644
--- a/bolt/lib/Passes/ThreeWayBranch.cpp
+++ b/bolt/lib/Passes/ThreeWayBranch.cpp
@@ -147,7 +147,7 @@ void ThreeWayBranch::runOnFunction(BinaryFunction &Function) {
}
}
-void ThreeWayBranch::runOnFunctions(BinaryContext &BC) {
+Error ThreeWayBranch::runOnFunctions(BinaryContext &BC) {
for (auto &It : BC.getBinaryFunctions()) {
BinaryFunction &Function = It.second;
if (!shouldRunOnFunction(Function))
@@ -155,8 +155,9 @@ void ThreeWayBranch::runOnFunctions(BinaryContext &BC) {
runOnFunction(Function);
}
- outs() << "BOLT-INFO: number of three way branches order changed: "
- << BranchesAltered << "\n";
+ BC.outs() << "BOLT-INFO: number of three way branches order changed: "
+ << BranchesAltered << "\n";
+ return Error::success();
}
} // end namespace bolt