summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-12-14 19:32:31 +0000
committerDan Gohman <gohman@apple.com>2009-12-14 19:32:31 +0000
commitfd5de58ec13b2de5f278195376a947eb06547a54 (patch)
tree113f44331f3ccf5b3f40778e82902213aa6aaa2f /llvm/lib/Support
parentd196a58b557ba388241547c06d76f3a30085f4fc (diff)
downloadbcm5719-llvm-fd5de58ec13b2de5f278195376a947eb06547a54.tar.gz
bcm5719-llvm-fd5de58ec13b2de5f278195376a947eb06547a54.zip
Micro-optimize these functions in the case where they are not inlined.
llvm-svn: 91316
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/raw_ostream.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Support/raw_ostream.cpp b/llvm/lib/Support/raw_ostream.cpp
index 31451ccfdb1..0c90e7720bf 100644
--- a/llvm/lib/Support/raw_ostream.cpp
+++ b/llvm/lib/Support/raw_ostream.cpp
@@ -209,8 +209,7 @@ raw_ostream &raw_ostream::operator<<(const void *P) {
}
raw_ostream &raw_ostream::operator<<(double N) {
- this->operator<<(ftostr(N));
- return *this;
+ return this->operator<<(ftostr(N));
}
OpenPOWER on IntegriCloud