aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support
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
commitf304ff63d334d80da82383e67963c0f1f73f67ed (patch)
treec490ff01c766287983e46b0b80eb43d954ac8ecb /lib/Support
parent5c2873a74bffaf608e268761b30439e158369413 (diff)
downloadexternal_llvm-f304ff63d334d80da82383e67963c0f1f73f67ed.zip
external_llvm-f304ff63d334d80da82383e67963c0f1f73f67ed.tar.gz
external_llvm-f304ff63d334d80da82383e67963c0f1f73f67ed.tar.bz2
Use llvm::format instead of ftostr (which just calls sprintf).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94807 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r--lib/Support/raw_ostream.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Support/raw_ostream.cpp b/lib/Support/raw_ostream.cpp
index 10d7ec0..f020681 100644
--- a/lib/Support/raw_ostream.cpp
+++ b/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));
}