This fixes a problem where AsmWriter asserts or produces invalid textual IR
when the locale is set such that ',' is used for the decimal point.
The reliance on C++ streams is perhaps annoying, but I see no other way
short of importing a whole double-to-string routine. Having the user change
the locale certainly isn't an option because this occurs in a context where
LLVM is embedded in a larger application.