mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19279 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -100,7 +100,9 @@ static inline std::string itostr(int X) {
|
|||||||
static inline std::string ftostr(double V) {
|
static inline std::string ftostr(double V) {
|
||||||
char Buffer[200];
|
char Buffer[200];
|
||||||
sprintf(Buffer, "%20.6e", V);
|
sprintf(Buffer, "%20.6e", V);
|
||||||
return Buffer;
|
char *B = Buffer;
|
||||||
|
while (*B == ' ') ++B;
|
||||||
|
return B;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline std::string LowercaseString(const std::string &S) {
|
static inline std::string LowercaseString(const std::string &S) {
|
||||||
|
Reference in New Issue
Block a user