[PATCH] D79190: llvm rejects DWARF operator DW_OP_lit[1-31].

Alok Kumar Sharma via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 30 11:47:16 PDT 2020


alok created this revision.
alok added reviewers: aprantl, probinson, dblaikie, jmorse, vsk, dstenb, jini.susan.george, SouraVX.
alok added projects: debug-info, LLVM.
Herald added subscribers: llvm-commits, ormris, hiraditya.

Currently only DWARF operator DW_OP_lit0 is accepted other in the family like DW_OP_lit1-31 are rejected.

  Summary

llvm doesnt accept DW_OP_lit[1-31], it accepts only DW_OP_lit0.
it produces below error.
. . . .
invalid expression
!DIExpression(53, 30, 159)
. . . .
Current patch completes support for DWARF operator DW_OP_lit[1-31].

  Testing

- Added unit test for validation thru llvm-dwarfdump
- check-debuginfo
- check-llvm


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D79190

Files:
  llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp
  llvm/lib/IR/DebugInfoMetadata.cpp
  llvm/test/DebugInfo/dwarfdump-litN.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79190.261293.patch
Type: text/x-patch
Size: 5037 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200430/2e724c94/attachment.bin>


More information about the llvm-commits mailing list