brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 193bc63 Raw
36 lines · plain
1; REQUIRES: x862; RUN: llvm-as %s -o %t.o3 4; Here we verify that -debugger-tune=<value> option is5; handled by LLD. DWARF linkage name attributes are optional,6; they normally present, but are missing for SCE debugger tune.7 8; RUN: ld.lld %t.o -o %t.exe9; RUN: llvm-dwarfdump %t.exe | FileCheck %s10; CHECK: DW_AT_linkage_name ("name_of_foo")11 12; RUN: ld.lld -plugin-opt=-debugger-tune=sce %t.o -o %t.exe13; RUN: llvm-dwarfdump %t.exe | FileCheck --check-prefix=SCE %s14; SCE-NOT: name_of_foo15 16target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"17target triple = "x86_64-unknown-linux-gnu"18 19@foo = global i32 0, align 4, !dbg !020 21!llvm.dbg.cu = !{!5}22!llvm.module.flags = !{!8, !9}23 24!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())25!1 = distinct !DIGlobalVariable(name: "global_foo", linkageName: "name_of_foo", scope: !2,26     file: !3, line: 2, type: !4, isLocal: false, isDefinition: true)27!2 = !DINamespace(name: "test", scope: null)28!3 = !DIFile(filename: "test.cpp", directory: "/home/tests")29!4 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)30!5 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !3, producer: "clang",31     isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !6, globals: !7)32!6 = !{}33!7 = !{!0}34!8 = !{i32 2, !"Dwarf Version", i32 4}35!9 = !{i32 2, !"Debug Info Version", i32 3}36