summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/interface
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2013-06-11 21:56:55 +0000
committerGreg Clayton <gclayton@apple.com>2013-06-11 21:56:55 +0000
commitbc8fc0f5e0c00d2d09840c615b145e2e2ab35fb7 (patch)
tree8836f4247c0ff0ef565833b3aaafe4ffb43a1f08 /lldb/scripts/Python/interface
parent1f16b743d9255f5f75a85c52e3a02d04b4a1e590 (diff)
downloadbcm5719-llvm-bc8fc0f5e0c00d2d09840c615b145e2e2ab35fb7.tar.gz
bcm5719-llvm-bc8fc0f5e0c00d2d09840c615b145e2e2ab35fb7.zip
Use llvm::APFloat for formatting if a target is available. Each target when debugging has a "ASTContext" that helps us to use the correct floating point semantics. Now that APFloat supports toString we now use that. If we don't have a target, we still fall back on the old display methodology, but the important formatting should always have a target available and thus use the compiler floating point code.
Modified the test programs to use floating point constants that always will display correctly. We had some numbers that were being rounded, and now that we are using clang, we no longer round them and we get more correct results. llvm-svn: 183792
Diffstat (limited to 'lldb/scripts/Python/interface')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud