[PATCH] [DWARF] Fix a few corner cases in expression emission
Adrian Prantl
aprantl at apple.com
Mon Jun 8 13:56:01 PDT 2015
Oh you definitely should, especially if they are giving sloppy examples!
What I should have written is: The IR
[machinereg no. 5] 4 DW_OP_plus
should become (in DWARF v5):
DW_OP_regval_type 5 [type ofs] DW_OP_constu 4 DW_OP_plus DW_OP_stack_value
whereas the IR
[machinereg no. 5] 4 DW_OP_plus DW_OP_deref
should become (in any DWARF version):
DW_OP_breg 5
You are absolutely correct that the first expression isn't actually expressible in DWARF 4 and before.
REPOSITORY
rL LLVM
http://reviews.llvm.org/D10302
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the llvm-commits
mailing list