diff options
author | Dan Gohman <gohman@apple.com> | 2009-12-14 19:32:31 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-12-14 19:32:31 +0000 |
commit | a4f8ecd85de38c14b11bbd0fc8cb9a427e9f3d75 (patch) | |
tree | 91a38d952e902d22a6ae052de8fb7dbc5774ffa1 /lib/Support/raw_ostream.cpp | |
parent | a623f5a58dd7768b0cf4dbb61b1fffa8b4d07cca (diff) |
Micro-optimize these functions in the case where they are not inlined.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91316 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/raw_ostream.cpp')
-rw-r--r-- | lib/Support/raw_ostream.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Support/raw_ostream.cpp b/lib/Support/raw_ostream.cpp index 31451ccfdb..0c90e7720b 100644 --- a/lib/Support/raw_ostream.cpp +++ b/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)); } |