diff options
author | Pavel Labath <pavel@labath.sk> | 2020-11-06 10:44:14 +0100 |
---|---|---|
committer | Pavel Labath <pavel@labath.sk> | 2020-11-23 09:59:07 +0100 |
commit | 6ef7835afca246e623e9990dcd8c71204f5691e5 (patch) | |
tree | 4e5c1e33a4fe8bffce711c03bf621901056af799 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 33b2c88fa8223dbf15846ce18cc957e33e0d67fc (diff) | |
download | llvm-6ef7835afca246e623e9990dcd8c71204f5691e5.zip llvm-6ef7835afca246e623e9990dcd8c71204f5691e5.tar.gz llvm-6ef7835afca246e623e9990dcd8c71204f5691e5.tar.bz2 |
[DebugInfo] Refactor code for emitting DWARF expressions for FP constants
This patch moves the selection of the style used to emit the numbers
(DW_OP_implicit_value vs. DW_OP_const+DW_OP_stack_value) into
DwarfExpression::addUnsignedConstant. This logic is not FP-specific, and
it will be needed for large integers too.
The refactor also makes DW_OP_implicit_value (DW_OP_stack_value worked
already) be used for floating point constants other than float and
double, so I've added a _Float16 test for it.
Split off from D90916.
Differential Revision: https://reviews.llvm.org/D91058
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions