[PATCH] D24425: DebugInfo: support for DWARFv5 DW_AT_alignment attribute

Victor Leschuk via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 11 08:59:34 PDT 2016


vleschuk updated the summary for this revision.
vleschuk updated this revision to Diff 70964.
vleschuk added a comment.

Got rid of DINode::FlagAlignment: now we assume that clang passes non-zero align value to DIBuilder only in case if alignment was forced. Thus we just check for non-zero align value and if true, emit DW_AT_alignment. Also updated related tests according to new behavior.


https://reviews.llvm.org/D24425

Files:
  include/llvm/IR/DIBuilder.h
  include/llvm/IR/DebugInfoMetadata.h
  include/llvm/Support/Dwarf.h
  lib/AsmParser/LLParser.cpp
  lib/Bitcode/Reader/BitcodeReader.cpp
  lib/Bitcode/Writer/BitcodeWriter.cpp
  lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
  lib/CodeGen/AsmPrinter/DwarfUnit.cpp
  lib/IR/AsmWriter.cpp
  lib/IR/DIBuilder.cpp
  lib/IR/DebugInfoMetadata.cpp
  lib/IR/LLVMContextImpl.h
  lib/Support/Dwarf.cpp
  test/DebugInfo/X86/align_c11.ll
  test/DebugInfo/X86/align_cpp11.ll
  test/DebugInfo/X86/align_objc.ll
  test/DebugInfo/X86/dwarf-public-names.ll
  unittests/IR/MetadataTest.cpp
  unittests/IR/VerifierTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24425.70964.patch
Type: text/x-patch
Size: 71295 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160911/6eea1678/attachment-0001.bin>


More information about the llvm-commits mailing list