Skip to content

Commit ddd6f4a

Browse files
SC llvm teamSC llvm team
authored andcommitted
Merged main:1e9324a8c734aaa933d2672522cc22d5022c6200 into amd-gfx:ab63de878b82
Local branch amd-gfx ab63de8 Merged main:881f20e958e80bd30463fc57d2d3e891bcb8a571 into amd-gfx:cbb3d19bf0f1 Remote branch main 1e9324a [lldb] Namespace SBSourceLanguageName (NFC)
2 parents ab63de8 + 1e9324a commit ddd6f4a

File tree

5 files changed

+89
-4
lines changed

5 files changed

+89
-4
lines changed

lldb/include/lldb/API/SBExpressionOptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class LLDB_API SBExpressionOptions {
7171
/// Set the language using a pair of language code and version as
7272
/// defined by the DWARF 6 specification.
7373
/// WARNING: These codes may change until DWARF 6 is finalized.
74-
void SetLanguage(SBSourceLanguageName name, uint32_t version);
74+
void SetLanguage(lldb::SBSourceLanguageName name, uint32_t version);
7575

7676
#ifndef SWIG
7777
void SetCancelCallback(lldb::ExpressionCancelCallback callback, void *baton);

lldb/source/API/SBExpressionOptions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ void SBExpressionOptions::SetLanguage(lldb::LanguageType language) {
156156
m_opaque_up->SetLanguage(language);
157157
}
158158

159-
void SBExpressionOptions::SetLanguage(SBSourceLanguageName name,
159+
void SBExpressionOptions::SetLanguage(lldb::SBSourceLanguageName name,
160160
uint32_t version) {
161161
LLDB_INSTRUMENT_VA(this, name, version);
162162

llvm/include/llvm/Config/llvm-config.h.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
/* Indicate that this is LLVM compiled from the amd-gfx branch. */
1818
#define LLVM_HAVE_BRANCH_AMD_GFX
19-
#define LLVM_MAIN_REVISION 499086
19+
#define LLVM_MAIN_REVISION 499088
2020

2121
/* Define if LLVM_ENABLE_DUMP is enabled */
2222
#cmakedefine LLVM_ENABLE_DUMP

llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3564,7 +3564,8 @@ void DwarfDebug::addAccelNameImpl(
35643564
const DwarfUnit &Unit,
35653565
const DICompileUnit::DebugNameTableKind NameTableKind,
35663566
AccelTable<DataT> &AppleAccel, StringRef Name, const DIE &Die) {
3567-
if (getAccelTableKind() == AccelTableKind::None || Name.empty())
3567+
if (getAccelTableKind() == AccelTableKind::None ||
3568+
Unit.getUnitDie().getTag() == dwarf::DW_TAG_skeleton_unit || Name.empty())
35683569
return;
35693570

35703571
if (getAccelTableKind() != AccelTableKind::Apple &&
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
; RUN: rm -rf %t && split-file %s %t && cd %t
2+
; RUN: llc -filetype=obj -o - a.ll -split-dwarf-file=foo.dwo \
3+
; RUN: | llvm-dwarfdump - -debug-names -debug-info \
4+
; RUN: | FileCheck --implicit-check-not=contents: %s
5+
6+
; CHECK: .debug_info contents:
7+
; CHECK: .debug_info.dwo contents:
8+
; CHECK: DW_TAG_subprogram
9+
; CHECK: [[F3_DEF:0x[0-9a-f]*]]: DW_TAG_subprogram
10+
; CHECK-NOT: DW_TAG
11+
; CHECK: DW_AT_name ("f3")
12+
; CHECK-NOT: DW_TAG
13+
; CHECK: [[F2_INL:0x[0-9a-f]*]]: DW_TAG_inlined_subroutine
14+
; CHECK-NOT: DW_TAG
15+
; CHECK: DW_AT_abstract_origin ({{.*}} "_Z2f2v")
16+
; CHECK: .debug_names contents:
17+
; CHECK: String: {{.*}} "f2"
18+
; CHECK: Entry {{.*}}{
19+
; CHECK-NOT: {{^ *}}Entry
20+
; CHECK: Tag: DW_TAG_inlined_subroutine
21+
; CHECK-NOT: {{^ *}}Entry
22+
; CHECK: DW_IDX_die_offset: [[F2_INL]]
23+
; CHECK-NOT: {{^ *}}Entry
24+
; CHECK: }
25+
; CHECK-NEXT: }
26+
; CHECK: String: {{.*}} "f3"
27+
; CHECK: Entry {{.*}}{
28+
; CHECK-NOT: {{^ *}}Entry
29+
; CHECK: Tag: DW_TAG_subprogram
30+
; CHECK-NOT: {{^ *}}Entry
31+
; CHECK: DW_IDX_die_offset: [[F3_DEF]]
32+
; CHECK-NOT: {{^ *}}Entry
33+
; CHECK: }
34+
; CHECK-NEXT: }
35+
36+
;--- a.cc
37+
void f1();
38+
inline void f2() {
39+
f1();
40+
}
41+
void f3() {
42+
f2();
43+
}
44+
;--- gen
45+
clang++ --target=x86_64-linux -S -emit-llvm -O3 -g -fsplit-dwarf-inlining -c \
46+
-gpubnames a.cc -o -
47+
48+
;--- a.ll
49+
; ModuleID = 'a.cc'
50+
source_filename = "a.cc"
51+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
52+
target triple = "x86_64-unknown-linux"
53+
54+
; Function Attrs: mustprogress uwtable
55+
define dso_local void @_Z2f3v() local_unnamed_addr #0 !dbg !8 {
56+
entry:
57+
tail call void @_Z2f1v(), !dbg !11
58+
ret void, !dbg !14
59+
}
60+
61+
declare !dbg !15 void @_Z2f1v() local_unnamed_addr #1
62+
63+
attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
64+
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
65+
66+
!llvm.dbg.cu = !{!0}
67+
!llvm.module.flags = !{!2, !3, !4, !5, !6, !7}
68+
69+
!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus_14, file: !1, isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug)
70+
!1 = !DIFile(filename: "a.cc", directory: "/proc/self/cwd", checksumkind: CSK_MD5, checksum: "661bc2c3d7df6cc69861afc8fb17bf16")
71+
!2 = !{i32 7, !"Dwarf Version", i32 5}
72+
!3 = !{i32 2, !"Debug Info Version", i32 3}
73+
!4 = !{i32 1, !"wchar_size", i32 4}
74+
!5 = !{i32 8, !"PIC Level", i32 2}
75+
!6 = !{i32 7, !"PIE Level", i32 2}
76+
!7 = !{i32 7, !"uwtable", i32 2}
77+
!8 = distinct !DISubprogram(name: "f3", linkageName: "_Z2f3v", scope: !1, file: !1, line: 5, type: !9, scopeLine: 5, flags: DIFlagPrototyped | DIFlagAllCallsDescribed, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0)
78+
!9 = !DISubroutineType(types: !10)
79+
!10 = !{null}
80+
!11 = !DILocation(line: 3, column: 3, scope: !12, inlinedAt: !13)
81+
!12 = distinct !DISubprogram(name: "f2", linkageName: "_Z2f2v", scope: !1, file: !1, line: 2, type: !9, scopeLine: 2, flags: DIFlagPrototyped | DIFlagAllCallsDescribed, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0)
82+
!13 = distinct !DILocation(line: 6, column: 3, scope: !8)
83+
!14 = !DILocation(line: 7, column: 1, scope: !8)
84+
!15 = !DISubprogram(name: "f1", linkageName: "_Z2f1v", scope: !1, file: !1, line: 1, type: !9, flags: DIFlagPrototyped, spFlags: DISPFlagOptimized)

0 commit comments

Comments
 (0)