[PATCH] D20435: [codeview] Adding support for CodeView types

Amjad Aboud via llvm-commits llvm-commits at lists.llvm.org
Thu May 19 08:07:21 PDT 2016


aaboud created this revision.
aaboud added reviewers: echristo, rnk, dblaikie, zturner, majnemer, aprantl.
aaboud added a subscriber: llvm-commits.
Herald added a subscriber: joker.eph.

Added support for CodeView Types.
Now type indices are auto generated.
The idea is:
1. to lower types from LLVM DIType to CodeViewType during assembly processing (codeview symbol processing).
2. assigned indices to all codeview types according to order they are going to be emitted in.
3. emit the codeview types into .Debug$T section.

Note: This patch only adds support for Basic types and function type (and id).
          Once this patch is committed, it will be relatively easy to support all other kind of types.

Few LIT tests were modified to be aligned with the changes and two LIT tests that covers basic types and function type were added.

http://reviews.llvm.org/D20435

Files:
  include/llvm/DebugInfo/CodeView/TypeIndex.h
  include/llvm/DebugInfo/CodeView/TypeRecord.h
  lib/CodeGen/AsmPrinter/CMakeLists.txt
  lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
  lib/CodeGen/AsmPrinter/CodeViewDebug.h
  lib/CodeGen/AsmPrinter/CodeViewType.cpp
  lib/CodeGen/AsmPrinter/CodeViewType.h
  test/DebugInfo/COFF/asm.ll
  test/DebugInfo/COFF/basic-types.ll
  test/DebugInfo/COFF/function-type.ll
  test/DebugInfo/COFF/inlining.ll
  test/DebugInfo/COFF/multifile.ll
  test/DebugInfo/COFF/multifunction.ll
  test/DebugInfo/COFF/simple.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20435.57793.patch
Type: text/x-patch
Size: 72814 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160519/7868be4b/attachment.bin>


More information about the llvm-commits mailing list