[PATCH] D42736: [DebugInfo] Improvements to representation of enumeration types (PR36168)

Momchil Velikov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 31 06:40:28 PST 2018


chill created this revision.
chill added reviewers: dblaikie, keith.walker.arm.
Herald added subscribers: JDevlieghere, aprantl.

This is the `clang` counterpart to https://reviews.llvm.org/D42734

This patch:

- fixed an incorrect sign-extension of unsigned  values, when emitting debug info metadata for enumerators
- the enumerators metadata is created with a flag, which determines interpretation of the value bits (signed or unsigned)
- the enumerations metadata contains the underlying integer type and a flag, indicating whether this is a C++ "fixed enum"


Repository:
  rC Clang

https://reviews.llvm.org/D42736

Files:
  lib/CodeGen/CGDebugInfo.cpp
  test/CodeGen/debug-info-enum.cpp
  test/CodeGenCXX/debug-info-enum-class.cpp
  test/CodeGenCXX/debug-info-enum.cpp
  test/Modules/ModuleDebugInfo.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42736.132164.patch
Type: text/x-patch
Size: 7198 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180131/a22935b6/attachment.bin>


More information about the cfe-commits mailing list