FailedChanges

Summary

  1. [DWARF] - Fix mistype in dump output of pub* tables. NFC. There was a garbage character in output introduced by myself in r290040 "[DWARF] - Introduce DWARFDebugPubTable class for dumping pub* sections."
  2. [DebugInfo][X86] Improve X86 Optimize LEAs handling of debug values. This is a follow up to the fix in r298360 to improve the handling of debug values when redundant LEAs are removed. The fix in r298360 effectively discarded the debug values. This patch now attempts to preserve the debug values by using the DWARF DW_OP_stack_value operation via prependDIExpr. Moved functions appendOffset and prependDIExpr from Local.cpp to DebugInfoMetadata.cpp and made them available as static member functions of DIExpression. Differential Revision: https://reviews.llvm.org/D31604
Revision 301631 by grimar:
[DWARF] - Fix mistype in dump output of pub* tables. NFC.

There was a garbage character in output introduced by myself in
r290040 "[DWARF] - Introduce DWARFDebugPubTable class for dumping pub* sections."
Change TypePath in RepositoryPath in Workspace
The file was modified/llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugPubTable.cpp (diff)llvm-revision.src/llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugPubTable.cpp
Revision 301630 by anng:
[DebugInfo][X86] Improve X86 Optimize LEAs handling of debug values.

This is a follow up to the fix in r298360 to improve the handling of debug
values when redundant LEAs are removed. The fix in r298360 effectively
discarded the debug values. This patch now attempts to preserve the debug
values by using the DWARF DW_OP_stack_value operation via prependDIExpr.

Moved functions appendOffset and prependDIExpr from Local.cpp to
DebugInfoMetadata.cpp and made them available as static member functions of
DIExpression.

Differential Revision: https://reviews.llvm.org/D31604
Change TypePath in RepositoryPath in Workspace
The file was modified/llvm/trunk/include/llvm/IR/DebugInfoMetadata.h (diff)llvm-revision.src/llvm/trunk/include/llvm/IR/DebugInfoMetadata.h
The file was modified/llvm/trunk/lib/IR/DebugInfoMetadata.cpp (diff)llvm-revision.src/llvm/trunk/lib/IR/DebugInfoMetadata.cpp
The file was modified/llvm/trunk/lib/Target/X86/X86OptimizeLEAs.cpp (diff)llvm-revision.src/llvm/trunk/lib/Target/X86/X86OptimizeLEAs.cpp
The file was modified/llvm/trunk/lib/Transforms/Utils/Local.cpp (diff)llvm-revision.src/llvm/trunk/lib/Transforms/Utils/Local.cpp
The file was modified/llvm/trunk/test/CodeGen/X86/lea-opt-with-debug.mir (diff)llvm-revision.src/llvm/trunk/test/CodeGen/X86/lea-opt-with-debug.mir