OSDN Git Service

[lldb/Utility] Simplify more Scalar methods
authorPavel Labath <pavel@labath.sk>
Fri, 3 Jul 2020 14:31:50 +0000 (16:31 +0200)
committerPavel Labath <pavel@labath.sk>
Fri, 3 Jul 2020 14:35:14 +0000 (16:35 +0200)
commit228ea815832a863bfd4da0f0fd67675e0a02cb88
tree076acf4833af6a7d7921eac79db3b87f0a683a97
parent6f779f35f572e17994bd334681131d9066b65f21
[lldb/Utility] Simplify more Scalar methods

A lot of the methods handle all integral and all floating point types
the same way. They can be changed to switch on the category of the type,
instead of the actual type, saving a lot of boilerplate.

This patch does that for the methods where I could be reasonably certain
of their expected semantics.
lldb/source/Utility/Scalar.cpp