diff options
author | Pavel Labath <pavel@labath.sk> | 2020-06-26 11:32:22 +0200 |
---|---|---|
committer | Pavel Labath <pavel@labath.sk> | 2020-06-26 11:46:47 +0200 |
commit | ce275d3030a9dfcf9c55c81b88ae1b2c88f1828f (patch) | |
tree | 66b5402c0723b44f471150bc795c45140ffa7dca /clang/lib/Basic/Module.cpp | |
parent | 0ccfe1b267af84360c1ab6b7e5a1366e1aa8ef7d (diff) | |
download | llvm-ce275d3030a9dfcf9c55c81b88ae1b2c88f1828f.zip llvm-ce275d3030a9dfcf9c55c81b88ae1b2c88f1828f.tar.gz llvm-ce275d3030a9dfcf9c55c81b88ae1b2c88f1828f.tar.bz2 |
[lldb] Rewrite Scalar::Promote
This function was implementing c-like promotion rules by switching on
the both types. C promotion rules are complicated, but they are not
*that* complicated -- they basically boil down to:
- wider types trump narrower ones
- unsigned trump signed
- floating point trumps integral
With a couple of helper functions, we can rewrite the function in terms
of these rules and greatly reduce the size and complexity of this
function.
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
0 files changed, 0 insertions, 0 deletions