aboutsummaryrefslogtreecommitdiff
path: root/lib/Support/BranchProbability.cpp
diff options
context:
space:
mode:
authorJakub Staszak <jstaszak@apple.com>2011-07-25 22:27:42 +0000
committerJakub Staszak <jstaszak@apple.com>2011-07-25 22:27:42 +0000
commit15b35677d0d49078658e87451dc5321bb95d4034 (patch)
tree375a0a43a1313ec4fbf22f9505e2fdc48e2b295c /lib/Support/BranchProbability.cpp
parented4b4272ba2c2ff68f839738ba8147c3606d8885 (diff)
BranchProbability::print returns void now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135994 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/BranchProbability.cpp')
-rw-r--r--lib/Support/BranchProbability.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Support/BranchProbability.cpp b/lib/Support/BranchProbability.cpp
index 97342da3f0..49d04ed836 100644
--- a/lib/Support/BranchProbability.cpp
+++ b/lib/Support/BranchProbability.cpp
@@ -24,9 +24,8 @@ BranchProbability::BranchProbability(uint32_t n, uint32_t d) {
D = d;
}
-raw_ostream &BranchProbability::print(raw_ostream &OS) const {
+void BranchProbability::print(raw_ostream &OS) const {
OS << N << " / " << D << " = " << ((double)N / D);
- return OS;
}
void BranchProbability::dump() const {