diff options
author | Sam McCall <sam.mccall@gmail.com> | 2018-07-09 12:16:40 +0000 |
---|---|---|
committer | Sam McCall <sam.mccall@gmail.com> | 2018-07-09 12:16:40 +0000 |
commit | d93eaeb7c399488b16753b1786a30ec6a59761c7 (patch) | |
tree | 67793aef0e29ef86851aee92b0f0c1cdc018240e /lldb/packages/Python/lldbsuite/test/python_api/symbol-context/TestSymbolContext.py | |
parent | 6f33b330ae1808ab2a5d7184abafefc5d5821059 (diff) | |
download | bcm5719-llvm-d93eaeb7c399488b16753b1786a30ec6a59761c7.tar.gz bcm5719-llvm-d93eaeb7c399488b16753b1786a30ec6a59761c7.zip |
[Support] Make JSON handle doubles and int64s losslessly
Summary:
This patch adds a new "integer" ValueType, and renames Number -> Double.
This allows us to preserve the full precision of int64_t when parsing integers
from the wire, or constructing from an integer.
The API is unchanged, other than giving asInteger() a clearer contract.
In addition, always output doubles with enough precision that parsing will
reconstruct the same double.
Reviewers: simon_tatham
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D46209
llvm-svn: 336541
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/symbol-context/TestSymbolContext.py')
0 files changed, 0 insertions, 0 deletions