| ; Test loading metadata which was not aware of versioned language names |
| ; nor of the DW_AT_LLVM_language_dialect attribute. |
| ; |
| ; The CU metadata record in this fixture predates both the |
| ; sourceLanguageVersion field (Record index 22) and the dialect field |
| ; (Record index 23). The MetadataLoader must default the dialect to 0 |
| ; ("no dialect specified") when the record is shorter than 24 elements, |
| ; and the AsmWriter must omit the dialect attribute since it defaults to |
| ; zero (printDwarfEnum skips zero values). |
| ; |
| ; RUN: llvm-dis -o - %p/Inputs/compile-unit-no-versioned-language.bc \ |
| ; RUN: | FileCheck %s --implicit-check-not "sourceLanguageName" \ |
| ; RUN: --implicit-check-not "sourceLanguageVersion" \ |
| ; RUN: --implicit-check-not "dialect" |
| |
| ; Input bitcode file was compiled from following source on |
| ; LLVM commit `fc22b58c25963ece6b041cadbdc931c2338955e4`: |
| ; |
| ; source_filename = "cu.cpp" |
| ; target triple = "arm64-apple-macosx" |
| ; |
| ; !llvm.dbg.cu = !{!0} |
| ; !llvm.module.flags = !{!3, !4} |
| ; |
| ; !0 = distinct !DICompileUnit(language: DW_LANG_ObjC, file: !1, producer: "handwritten", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, globals: !2, splitDebugInlining: false, nameTableKind: Apple, sysroot: "/") |
| ; !1 = !DIFile(filename: "cu.cpp", directory: "/tmp") |
| ; !2 = !{} |
| ; !3 = !{i32 7, !"Dwarf Version", i32 5} |
| ; !4 = !{i32 2, !"Debug Info Version", i32 3} |
| |
| ; CHECK: distinct !DICompileUnit(language: DW_LANG_ObjC, |