Debug info: Use DW_OP_bit_piece instead of DW_OP_piece in the
authorAdrian Prantl <aprantl@apple.com>
Mon, 9 Feb 2015 23:57:15 +0000 (23:57 +0000)
committerAdrian Prantl <aprantl@apple.com>
Mon, 9 Feb 2015 23:57:15 +0000 (23:57 +0000)
commit4f1b7f31000dde3b662c42829471b520f5c1ec0d
tree2e022a39fca536d9b151fd66c77327040829937a
parent76419c0533c51312a58661284bd5c8b91037e47d
Debug info: Use DW_OP_bit_piece instead of DW_OP_piece in the
intermediate representation. This
- increases consistency by using the same granularity everywhere
- allows for pieces < 1 byte
- DW_OP_piece didn't actually allow storing an offset.

Part of PR22495.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228631 91177308-0d34-0410-b5e6-96231b3b80d8
18 files changed:
include/llvm/IR/DIBuilder.h
include/llvm/IR/DebugInfo.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/CodeGen/AsmPrinter/DebugLocEntry.h
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfExpression.cpp
lib/IR/DIBuilder.cpp
lib/IR/DebugInfo.cpp
lib/Transforms/Scalar/SROA.cpp
test/DebugInfo/X86/array2.ll
test/DebugInfo/X86/nophysreg.ll
test/DebugInfo/X86/pieces-1.ll
test/DebugInfo/X86/pieces-2.ll
test/DebugInfo/X86/pieces-3.ll
test/DebugInfo/X86/sroasplit-1.ll
test/DebugInfo/X86/sroasplit-2.ll
test/DebugInfo/X86/sroasplit-3.ll
test/DebugInfo/X86/sroasplit-4.ll