diff options
author | Jakub Staszak <jstaszak@apple.com> | 2011-07-25 22:27:42 +0000 |
---|---|---|
committer | Jakub Staszak <jstaszak@apple.com> | 2011-07-25 22:27:42 +0000 |
commit | e92d047b517462aa1da44cb4db58e597f03c3ff7 (patch) | |
tree | 07d76f366d9b4153e6f5b4ca0669e85b1f404fa0 | |
parent | cbd3ba91b7c9664b6d0dc4ffb60e92b91385fbd6 (diff) | |
download | bcm5719-llvm-e92d047b517462aa1da44cb4db58e597f03c3ff7.tar.gz bcm5719-llvm-e92d047b517462aa1da44cb4db58e597f03c3ff7.zip |
BranchProbability::print returns void now.
llvm-svn: 135994
-rw-r--r-- | llvm/include/llvm/Support/BranchProbability.h | 2 | ||||
-rw-r--r-- | llvm/lib/Support/BranchProbability.cpp | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/llvm/include/llvm/Support/BranchProbability.h b/llvm/include/llvm/Support/BranchProbability.h index 80da81b5597..05c24d4fcfc 100644 --- a/llvm/include/llvm/Support/BranchProbability.h +++ b/llvm/include/llvm/Support/BranchProbability.h @@ -40,7 +40,7 @@ public: return BranchProbability(D - N, D); } - raw_ostream &print(raw_ostream &OS) const; + void print(raw_ostream &OS) const; void dump() const; }; diff --git a/llvm/lib/Support/BranchProbability.cpp b/llvm/lib/Support/BranchProbability.cpp index 97342da3f07..49d04ed8365 100644 --- a/llvm/lib/Support/BranchProbability.cpp +++ b/llvm/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 { |