diff options
author | Pavel Labath <labath@google.com> | 2017-06-23 12:55:02 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2017-06-23 12:55:02 +0000 |
commit | ec000f42faa4b139371b0a490a7201c29c22193d (patch) | |
tree | 881a669e79bc5bc115651c2ec634efdf0151b552 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | d5f7711ebb1a6b4df4704693f17a376f76137381 (diff) | |
download | bcm5719-llvm-ec000f42faa4b139371b0a490a7201c29c22193d.tar.gz bcm5719-llvm-ec000f42faa4b139371b0a490a7201c29c22193d.zip |
[ADT] Add llvm::to_float
Summary:
The function matches the interface of llvm::to_integer, but as we are
calling out to a C library function, I let it take a Twine argument, so
we can avoid a string copy at least in some cases.
I add a test and replace a couple of existing uses of strtod with this
function.
Reviewers: zturner
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D34518
llvm-svn: 306096
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions