diff options
author | Momchil Velikov <momchil.velikov@arm.com> | 2018-02-07 16:52:02 +0000 |
---|---|---|
committer | Momchil Velikov <momchil.velikov@arm.com> | 2018-02-07 16:52:02 +0000 |
commit | d7e17c232fb7ee57e5fbbe073b351d65560823cc (patch) | |
tree | 0e75323080dd23772638120c21cea07a279c8267 /clang/test/CodeGenCXX/debug-info-enum.cpp | |
parent | c502027efdf0361d5f8f57af6ad62d8096f0b6da (diff) | |
download | bcm5719-llvm-d7e17c232fb7ee57e5fbbe073b351d65560823cc.tar.gz bcm5719-llvm-d7e17c232fb7ee57e5fbbe073b351d65560823cc.zip |
[DebugInfo] Improvements to representation of enumeration types (PR36168)
This patch:
* fixes 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"
Differential Revision: https://reviews.llvm.org/D42736
llvm-svn: 324490
Diffstat (limited to 'clang/test/CodeGenCXX/debug-info-enum.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/debug-info-enum.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/debug-info-enum.cpp b/clang/test/CodeGenCXX/debug-info-enum.cpp index 8f54f9d7122..447edba446d 100644 --- a/clang/test/CodeGenCXX/debug-info-enum.cpp +++ b/clang/test/CodeGenCXX/debug-info-enum.cpp @@ -11,7 +11,7 @@ namespace test1 { // CHECK-SAME: identifier: "_ZTSN5test11eE" // CHECK: [[TEST1]] = !DINamespace(name: "test1" // CHECK: [[TEST1_ENUMS]] = !{[[TEST1_E:![0-9]*]]} -// CHECK: [[TEST1_E]] = !DIEnumerator(name: "E", value: 0) +// CHECK: [[TEST1_E]] = !DIEnumerator(name: "E", value: 0, isUnsigned: true) enum e { E }; void foo() { int v = E; |