647 lines · plain
1# This test generates a DW_TAG_structure_type with a linkage name. This linkage2# name will not be part of the accelerator table and the verifier should not3# complain about this.4#5# DW_TAG_structure_type6# DW_AT_name ("C")7# DW_AT_linkage_name ("$S4main1CCD")8#9# RUN: llvm-mc %s -filetype obj -triple x86_64-unknown-linux-gnu -o %t.o10# RUN: llvm-dwarfdump -debug-info %t.o | FileCheck %s11# RUN: llvm-dwarfdump -debug-names %t.o | FileCheck %s --check-prefix ACCEL12# RUN: llvm-dwarfdump -verify -debug-names %t.o13 14# CHECK: DW_AT_name ("Bool")15# CHECK-NEXT: DW_AT_linkage_name ("$SSbD")16 17# ACCEL-NOT: String: {{.*}} "$SSbD"18# ACCEL: String: {{.*}} "Bool"19# ACCEL-NOT: String: {{.*}} "$SSbD"20 21 .text22 .file "local-vars.swift.gyb.tmp.s"23 .protected main24 .globl main25 .p2align 4, 0x9026 .type main,@function27main:28.Lfunc_begin0:29.Ltmp0:30.Ltmp1:31.Lfunc_end0:32.Lfunc_begin1:33.Ltmp2:34.Ltmp3:35.Ltmp4:36.Lfunc_end1:37.Lfunc_begin2:38.Ltmp5:39.Ltmp6:40.Ltmp7:41.Lfunc_end2:42.Lfunc_begin3:43.Ltmp8:44.Ltmp9:45.Ltmp10:46.Lfunc_end3:47.Lfunc_begin4:48.Ltmp11:49.Ltmp12:50.Lfunc_end4:51.Lfunc_begin5:52.Ltmp13:53.LBB5_2:54.Ltmp14:55.Lfunc_end5:56.L__unnamed_1:57.L__unnamed_2:58.L__unnamed_3:59 .section .swift1_autolink_entries,"a",@progbits60 .p2align 361.L_swift1_autolink_entries:62 .asciz "-lswiftSwiftOnoneSupport\000-lswiftCore"63 .size .L_swift1_autolink_entries, 3764 65 .section ".linker-options","e",@llvm_linker_options66 .section .debug_str,"MS",@progbits,167.Linfo_string0:68 .asciz "Swift version 4.2-dev effective-4.1.50 (LLVM a4b1bcaa22, Clang 257fa19143, Swift 836ad071bd)"69.Linfo_string1:70 .asciz "/home/jonas/swift/build/Ninja-RelWithDebInfoAssert/swift-linux-x86_64/test-linux-x86_64/DebugInfo/Output/local-vars.swift.gyb.tmp.swift"71.Linfo_string2:72 .asciz "/home/jonas/swift/build/Ninja-RelWithDebInfoAssert/swift-linux-x86_64/test-linux-x86_64/DebugInfo"73.Linfo_string3:74 .asciz "main"75.Linfo_string4:76 .asciz "/home/jonas/swift/build/Ninja-RelWithDebInfoAssert/swift-linux-x86_64/test-linux-x86_64/DebugInfo/Output"77.Linfo_string5:78 .asciz "Swift"79.Linfo_string6:80 .asciz "/home/jonas/swift/build/Ninja-RelWithDebInfoAssert/swift-linux-x86_64/lib/swift/linux/x86_64/Swift.swiftmodule"81.Linfo_string7:82 .asciz "SwiftOnoneSupport"83.Linfo_string8:84 .asciz "/home/jonas/swift/build/Ninja-RelWithDebInfoAssert/swift-linux-x86_64/lib/swift/linux/x86_64/SwiftOnoneSupport.swiftmodule"85.Linfo_string9:86 .asciz "C"87.Linfo_string10:88 .asciz "$S4main1CCD"89.Linfo_string11:90 .asciz "init"91.Linfo_string12:92 .asciz "$S4main1CCyACSicfc"93.Linfo_string13:94 .asciz "isZero"95.Linfo_string14:96 .asciz "$S4main1CC6isZeroSbyF"97.Linfo_string15:98 .asciz "deinit"99.Linfo_string16:100 .asciz "$S4main1CCfd"101.Linfo_string17:102 .asciz "$S4main1CCfD"103.Linfo_string18:104 .asciz "$S4main1CCMa"105.Linfo_string19:106 .asciz "Int32"107.Linfo_string20:108 .asciz "$Ss5Int32VD"109.Linfo_string21:110 .asciz "Bool"111.Linfo_string22:112 .asciz "$SSbD"113.Linfo_string23:114 .asciz "$SBoD"115.Linfo_string24:116 .asciz "$SytD"117.Linfo_string25:118 .asciz "i"119.Linfo_string26:120 .asciz "Int"121.Linfo_string27:122 .asciz "$SSiD"123.Linfo_string28:124 .asciz "self"125 .section .debug_abbrev,"",@progbits126 .byte 1127 .byte 17128 .byte 1129 .byte 37130 .byte 14131 .byte 19132 .byte 5133 .byte 3134 .byte 14135 .byte 16136 .byte 23137 .byte 27138 .byte 14139 .ascii "\345\177"140 .byte 11141 .byte 17142 .byte 1143 .byte 18144 .byte 6145 .byte 0146 .byte 0147 .byte 2148 .byte 30149 .byte 1150 .byte 3151 .byte 14152 .ascii "\200|"153 .byte 14154 .byte 0155 .byte 0156 .byte 3157 .byte 46158 .byte 0159 .byte 17160 .byte 1161 .byte 18162 .byte 6163 .byte 64164 .byte 24165 .byte 110166 .byte 14167 .byte 3168 .byte 14169 .byte 58170 .byte 11171 .byte 59172 .byte 11173 .byte 73174 .byte 19175 .byte 63176 .byte 25177 .byte 0178 .byte 0179 .byte 4180 .byte 19181 .byte 1182 .byte 3183 .byte 14184 .byte 110185 .byte 14186 .byte 11187 .byte 11188 .byte 58189 .byte 11190 .byte 59191 .byte 11192 .ascii "\346\177"193 .byte 11194 .byte 0195 .byte 0196 .byte 5197 .byte 46198 .byte 1199 .byte 17200 .byte 1201 .byte 18202 .byte 6203 .byte 64204 .byte 24205 .byte 110206 .byte 14207 .byte 3208 .byte 14209 .byte 58210 .byte 11211 .byte 59212 .byte 11213 .byte 73214 .byte 19215 .byte 63216 .byte 25217 .byte 0218 .byte 0219 .byte 6220 .byte 5221 .byte 0222 .byte 2223 .byte 24224 .byte 3225 .byte 14226 .byte 58227 .byte 11228 .byte 59229 .byte 11230 .byte 73231 .byte 19232 .byte 0233 .byte 0234 .byte 7235 .byte 5236 .byte 0237 .byte 2238 .byte 24239 .byte 3240 .byte 14241 .byte 58242 .byte 11243 .byte 59244 .byte 11245 .byte 73246 .byte 19247 .byte 52248 .byte 25249 .byte 0250 .byte 0251 .byte 8252 .byte 46253 .byte 0254 .byte 17255 .byte 1256 .byte 18257 .byte 6258 .byte 64259 .byte 24260 .byte 110261 .byte 14262 .byte 52263 .byte 25264 .byte 63265 .byte 25266 .byte 0267 .byte 0268 .byte 9269 .byte 58270 .byte 0271 .byte 24272 .byte 19273 .byte 0274 .byte 0275 .byte 10276 .byte 19277 .byte 0278 .byte 3279 .byte 14280 .byte 110281 .byte 14282 .byte 11283 .byte 11284 .ascii "\346\177"285 .byte 11286 .byte 0287 .byte 0288 .byte 11289 .byte 30290 .byte 0291 .byte 3292 .byte 14293 .ascii "\200|"294 .byte 14295 .byte 0296 .byte 0297 .byte 12298 .byte 15299 .byte 0300 .byte 3301 .byte 14302 .byte 0303 .byte 0304 .byte 0305 .section .debug_info,"",@progbits306.Lcu_begin0:307 .long 385308 .short 4309 .long .debug_abbrev310 .byte 8311 .byte 1312 .long .Linfo_string0313 .short 30314 .long .Linfo_string1315 .long .Lline_table_start0316 .long .Linfo_string2317 .byte 4318 .quad .Lfunc_begin0319 .long .Lfunc_end5-.Lfunc_begin0320 .byte 2321 .long .Linfo_string3322 .long .Linfo_string4323 .byte 3324 .quad .Lfunc_begin0325 .long .Lfunc_end0-.Lfunc_begin0326 .byte 1327 .byte 86328 .long .Linfo_string3329 .long .Linfo_string3330 .byte 1331 .byte 1332 .long 319333 334 .byte 4335 .long .Linfo_string9336 .long .Linfo_string10337 .byte 8338 .byte 1339 .byte 9340 .byte 30341 .byte 5342 .quad .Lfunc_begin1343 .long .Lfunc_end1-.Lfunc_begin1344 .byte 1345 .byte 86346 .long .Linfo_string12347 .long .Linfo_string11348 .byte 1349 .byte 11350 .long 81351 352 .byte 6353 .byte 2354 .byte 145355 .byte 120356 .long .Linfo_string25357 .byte 1358 .byte 11359 .long 341360 .byte 7361 .byte 2362 .byte 145363 .byte 112364 .long .Linfo_string28365 .byte 1366 .byte 11367 .long 81368 369 .byte 0370 .byte 5371 .quad .Lfunc_begin2372 .long .Lfunc_end2-.Lfunc_begin2373 .byte 1374 .byte 86375 .long .Linfo_string14376 .long .Linfo_string13377 .byte 1378 .byte 12379 .long 330380 381 .byte 7382 .byte 2383 .byte 145384 .byte 112385 .long .Linfo_string28386 .byte 1387 .byte 12388 .long 81389 390 .byte 0391 .byte 5392 .quad .Lfunc_begin3393 .long .Lfunc_end3-.Lfunc_begin3394 .byte 1395 .byte 86396 .long .Linfo_string16397 .long .Linfo_string15398 .byte 1399 .byte 9400 .long 372401 402 .byte 7403 .byte 2404 .byte 145405 .byte 120406 .long .Linfo_string28407 .byte 1408 .byte 9409 .long 81410 411 .byte 0412 .byte 5413 .quad .Lfunc_begin4414 .long .Lfunc_end4-.Lfunc_begin4415 .byte 1416 .byte 86417 .long .Linfo_string17418 .long .Linfo_string15419 .byte 1420 .byte 9421 .long 377422 423 .byte 7424 .byte 2425 .byte 145426 .byte 120427 .long .Linfo_string28428 .byte 1429 .byte 9430 .long 81431 432 .byte 0433 .byte 0434 .byte 8435 .quad .Lfunc_begin5436 .long .Lfunc_end5-.Lfunc_begin5437 .byte 1438 .byte 86439 .long .Linfo_string18440 441 442 .byte 0443 .byte 9444 .long 43445 .byte 2446 .long .Linfo_string5447 .long .Linfo_string6448 .byte 10449 .long .Linfo_string19450 .long .Linfo_string20451 .byte 4452 .byte 30453 .byte 10454 .long .Linfo_string21455 .long .Linfo_string22456 .byte 1457 .byte 30458 .byte 10459 .long .Linfo_string26460 .long .Linfo_string27461 .byte 8462 .byte 30463 .byte 0464 .byte 9465 .long 310466 .byte 11467 .long .Linfo_string7468 .long .Linfo_string8469 .byte 9470 .long 358471 .byte 12472 .long .Linfo_string23473 .byte 10474 .long .Linfo_string24475 .long .Linfo_string24476 .byte 0477 .byte 30478 .byte 0479 .section .debug_ranges,"",@progbits480 .section .debug_macinfo,"",@progbits481 .byte 0482 .section .debug_names,"",@progbits483 .long .Lnames_end0-.Lnames_start0484.Lnames_start0:485 .short 5486 .short 0487 .long 1488 .long 0489 .long 0490 .long 14491 .long 15492 .long .Lnames_abbrev_end0-.Lnames_abbrev_start0493 .long 8494 .ascii "LLVM0700"495 .long .Lcu_begin0496 .long 0497 .long 0498 .long 1499 .long 0500 .long 2501 .long 0502 .long 0503 .long 4504 .long 6505 .long 7506 .long 11507 .long 14508 .long 15509 .long 0510 .long -125696958511 .long -1434607370512 .long -1434607370513 .long 87184321514 .long 2090120081515 .long -1434607142516 .long 181113837517 .long 262755061518 .long 2090370361519 .long -1008003439520 .long 193495088521 .long 2090499946522 .long -1294887406523 .long 181088625524 .long 177672525 .long .Linfo_string15526 .long .Linfo_string16527 .long .Linfo_string17528 .long .Linfo_string13529 .long .Linfo_string21530 .long .Linfo_string18531 .long .Linfo_string24532 .long .Linfo_string19533 .long .Linfo_string11534 .long .Linfo_string12535 .long .Linfo_string26536 .long .Linfo_string3537 .long .Linfo_string14538 .long .Linfo_string23539 .long .Linfo_string9540 .long .Lnames14-.Lnames_entries0541 .long .Lnames9-.Lnames_entries0542 .long .Lnames10-.Lnames_entries0543 .long .Lnames13-.Lnames_entries0544 .long .Lnames7-.Lnames_entries0545 .long .Lnames12-.Lnames_entries0546 .long .Lnames2-.Lnames_entries0547 .long .Lnames8-.Lnames_entries0548 .long .Lnames11-.Lnames_entries0549 .long .Lnames5-.Lnames_entries0550 .long .Lnames3-.Lnames_entries0551 .long .Lnames1-.Lnames_entries0552 .long .Lnames6-.Lnames_entries0553 .long .Lnames4-.Lnames_entries0554 .long .Lnames0-.Lnames_entries0555.Lnames_abbrev_start0:556 .byte 46557 .byte 46558 .byte 3559 .byte 19560 .byte 0561 .byte 0562 .byte 15563 .byte 15564 .byte 3565 .byte 19566 .byte 0567 .byte 0568 .byte 19569 .byte 19570 .byte 3571 .byte 19572 .byte 0573 .byte 0574 .byte 0575.Lnames_abbrev_end0:576.Lnames_entries0:577.Lnames14:578 .byte 46579 .long 196580 .byte 46581 .long 240582 .long 0583.Lnames9:584 .byte 46585 .long 196586 .long 0587.Lnames10:588 .byte 46589 .long 240590 .long 0591.Lnames13:592 .byte 46593 .long 152594 .long 0595.Lnames7:596 .byte 19597 .long 330598 .long 0599.Lnames12:600 .byte 46601 .long 285602 .long 0603.Lnames2:604 .byte 19605 .long 377606 .long 0607.Lnames8:608 .byte 19609 .long 319610 .long 0611.Lnames11:612 .byte 46613 .long 94614 .long 0615.Lnames5:616 .byte 46617 .long 94618 .long 0619.Lnames3:620 .byte 19621 .long 341622 .long 0623.Lnames1:624 .byte 46625 .long 52626 .long 0627.Lnames6:628 .byte 46629 .long 152630 .long 0631.Lnames4:632 .byte 15633 .long 372634 .long 0635.Lnames0:636 .byte 19637 .long 81638 .long 0639 .p2align 2640.Lnames_end0:641 642 .globl $S4main1CCN643 .protected $S4main1CCN644.set $S4main1CCN, ($S4main1CCMf)+16645 .section .debug_line,"",@progbits646.Lline_table_start0:647