mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-23 14:03:14 +00:00
Do not let 'ftostr' return a string that starts with spaces. This allows
the AsmWriter to emit FP constants like 1.0 in normal exponential notation instead of hex notation. llvm-svn: 19279
This commit is contained in:
parent
747c1e726d
commit
61bed2fe76
@ -100,7 +100,9 @@ static inline std::string itostr(int X) {
|
||||
static inline std::string ftostr(double V) {
|
||||
char Buffer[200];
|
||||
sprintf(Buffer, "%20.6e", V);
|
||||
return Buffer;
|
||||
char *B = Buffer;
|
||||
while (*B == ' ') ++B;
|
||||
return B;
|
||||
}
|
||||
|
||||
static inline std::string LowercaseString(const std::string &S) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user