diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-24 03:52:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-24 03:52:50 +0000 |
commit | f537768f6dfcdf5f06696b0383e292cbe3c6fec1 (patch) | |
tree | 4774267b96b9e5f813a16df7f0dc062d160671f3 /include/llvm/Support | |
parent | 526540b06f09bce88284b690bda1ab650e9566ec (diff) | |
download | external_llvm-f537768f6dfcdf5f06696b0383e292cbe3c6fec1.zip external_llvm-f537768f6dfcdf5f06696b0383e292cbe3c6fec1.tar.gz external_llvm-f537768f6dfcdf5f06696b0383e292cbe3c6fec1.tar.bz2 |
prune the #includes in raw_ostream.h by moving a
member out of line. ftostr is not particularly speedy,
so that method is presumably not perf sensitive.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79885 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support')
-rw-r--r-- | include/llvm/Support/raw_ostream.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/include/llvm/Support/raw_ostream.h b/include/llvm/Support/raw_ostream.h index c2252dc..0a5019e 100644 --- a/include/llvm/Support/raw_ostream.h +++ b/include/llvm/Support/raw_ostream.h @@ -14,11 +14,7 @@ #ifndef LLVM_SUPPORT_RAW_OSTREAM_H #define LLVM_SUPPORT_RAW_OSTREAM_H -#include "llvm/ADT/StringExtras.h" #include "llvm/ADT/StringRef.h" -#include <cassert> -#include <cstring> -#include <string> #include <iosfwd> namespace llvm { @@ -215,11 +211,7 @@ public: return *this; } - raw_ostream &operator<<(double N) { - this->operator<<(ftostr(N)); - return *this; - } - + raw_ostream &operator<<(double N); /// write_hex - Output \arg N in hexadecimal, without any prefix or padding. raw_ostream &write_hex(unsigned long long N); |