Skip to content

Commit b7d596b

Browse files
committed
🍒 [llvm][MetadataLoader] Make sure we correctly load DW_APPLE_ENUM_KIND from bitcode
This was pointed out in llvm#124752 (comment) There was no test that roundtrips this attribute through LLVM bitcode, so this was never caught.
1 parent 3f3fde0 commit b7d596b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎llvm/test/DebugInfo/AArch64/DW_AT_APPLE_enum_kind.ll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
; RUN: llc < %s -filetype=obj -o %t
22
; RUN: llvm-dwarfdump -v %t | FileCheck %s
3+
;
4+
; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s --check-prefix=CHECK-METADATA
35

46
; C++ source to regenerate:
57
; enum __attribute__((enum_extensibility(open))) OpenEnum {
@@ -12,6 +14,8 @@
1214
;
1315
; $ clang++ -O0 -g debug-info-enum-kind.cpp -c
1416

17+
; CHECK-METADATA: enumKind: DW_APPLE_ENUM_KIND_Open
18+
; CHECK-METADATA: enumKind: DW_APPLE_ENUM_KIND_Closed
1519

1620
; CHECK: .debug_abbrev contents:
1721

0 commit comments

Comments
 (0)