[PATCH] D33894: Align definition of DW_OP_plus with DWARF spec [3/3]

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 6 07:10:58 PDT 2017


sdesmalen updated this revision to Diff 101560.
sdesmalen added a comment.

Incremented the expression's Version operand and added backwards compatibility with older bitcode files by constructing a {DW_OP_constu, <opnd>, DW_OP_minus} from a {DW_OP_minus, <opnd>}.


https://reviews.llvm.org/D33894

Files:
  docs/LangRef.rst
  include/llvm/IR/DebugInfoMetadata.h
  lib/Bitcode/Reader/MetadataLoader.cpp
  lib/Bitcode/Writer/BitcodeWriter.cpp
  lib/CodeGen/AsmPrinter/DwarfExpression.cpp
  lib/CodeGen/AsmPrinter/DwarfExpression.h
  lib/IR/DebugInfoMetadata.cpp
  test/DebugInfo/X86/dw_op_minus.ll
  test/DebugInfo/X86/dw_op_minus_direct.ll
  test/DebugInfo/X86/safestack-byval.ll
  test/Transforms/InstCombine/debuginfo-dce.ll
  test/Transforms/SafeStack/X86/debug-loc.ll
  test/Transforms/SafeStack/X86/debug-loc2.ll
  unittests/IR/MetadataTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33894.101560.patch
Type: text/x-patch
Size: 14230 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170606/3124ca0b/attachment.bin>


More information about the llvm-commits mailing list