[PATCH] D30377: [DebugInfo] [DWARFv5] Support for DW_AT_calling_convention for types

Victor Leschuk via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 25 07:26:13 PST 2017


vleschuk created this revision.

Add support for DW_AT_calling_convention attribute for C++ types (http://www.dwarfstd.org/ShowIssue.php?issue=141215.1).  As recommended in DWARF issue this attribute uses DW_FORM_implicit_const to allow the producer to represent this attributes as compactly as possible. Code adds new field to DICompositeType class to encode calling convention, field is named ArgABI to match clang code naming. DW_CC_normal value is not emitted to DWARF output as absence of attribute is similar to its presence with DW_CC_normal.


https://reviews.llvm.org/D30377

Files:
  include/llvm/IR/DIBuilder.h
  include/llvm/IR/DebugInfoMetadata.h
  lib/AsmParser/LLParser.cpp
  lib/Bitcode/Reader/MetadataLoader.cpp
  lib/Bitcode/Writer/BitcodeWriter.cpp
  lib/CodeGen/AsmPrinter/DwarfUnit.cpp
  lib/IR/AsmWriter.cpp
  lib/IR/DIBuilder.cpp
  lib/IR/DebugInfoMetadata.cpp
  lib/IR/LLVMContextImpl.h
  test/DebugInfo/X86/type-calling-convention.ll
  unittests/IR/DebugTypeODRUniquingTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30377.89788.patch
Type: text/x-patch
Size: 35939 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170225/91c838cf/attachment.bin>


More information about the llvm-commits mailing list