summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/raw_ostream.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-01-29 14:40:33 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-01-29 14:40:33 +0000
commit6bee24ae9a6659d7d2532d6c865a678fdc9fccc2 (patch)
tree204d627636f66b113752d1140a67d0a5760d05d8 /llvm/lib/Support/raw_ostream.cpp
parent7e6c0fcc5941829c9f615d099cc77b5e012c238f (diff)
downloadbcm5719-llvm-6bee24ae9a6659d7d2532d6c865a678fdc9fccc2.tar.gz
bcm5719-llvm-6bee24ae9a6659d7d2532d6c865a678fdc9fccc2.zip
Use llvm::format instead of ftostr (which just calls sprintf).
llvm-svn: 94807
Diffstat (limited to 'llvm/lib/Support/raw_ostream.cpp')
-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 10d7ec07012..f020681e6fa 100644
--- a/llvm/lib/Support/raw_ostream.cpp
+++ b/llvm/lib/Support/raw_ostream.cpp
@@ -20,7 +20,6 @@
#include "llvm/Support/Compiler.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/ADT/STLExtras.h"
-#include "llvm/ADT/StringExtras.h"
#include <sys/stat.h>
#include <sys/types.h>
@@ -209,7 +208,7 @@ raw_ostream &raw_ostream::operator<<(const void *P) {
}
raw_ostream &raw_ostream::operator<<(double N) {
- return this->operator<<(ftostr(N));
+ return this->operator<<(format("%e", N));
}
OpenPOWER on IntegriCloud