mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Use llvm::format instead of ftostr (which just calls sprintf).
llvm-svn: 94807
This commit is contained in:
parent
6b277c2823
commit
326bcaa5f9
@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user