-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[XCOFF][DWARF] XCOFF64 should be able to select the dwarf format in i…
…ntergrated-as mode. Summary: DWARF32 is not supported for XCOFF64 under non-integrated-as mode on AIX, because system assembler will fill the debug section lengths according to DWARF64 format. While in intergrated-as mode, XCOFF64 should be able to select the DWARF format. Reviewed By: shchenz Differential Revision: https://reviews.llvm.org/D150181
- Loading branch information
Showing
7 changed files
with
61 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
; RUN: llc -mtriple powerpc64-ibm-aix-xcoff -filetype=obj %s -o - \ | ||
; RUN: | llvm-dwarfdump -debug-line - | FileCheck %s --check-prefixes=CHECK | ||
|
||
; RUN: llc -mtriple powerpc64-ibm-aix-xcoff -filetype=obj -dwarf64 %s -o - \ | ||
; RUN: | llvm-dwarfdump -debug-line - | FileCheck %s --check-prefixes=CHECK64 | ||
|
||
; CHECK: file format aix5coff64-rs6000 | ||
; CHECK: format: DWARF32 | ||
|
||
; CHECK64: file format aix5coff64-rs6000 | ||
; CHECK64: format: DWARF64 | ||
|
||
source_filename = "1.c" | ||
target datalayout = "E-m:a-p:32:32-Fi32-i64:64-n32" | ||
|
||
@foo = global i32 0, align 4, !dbg !0 | ||
|
||
!llvm.dbg.cu = !{!2} | ||
!llvm.module.flags = !{!6, !7, !8, !9, !10} | ||
!llvm.ident = !{!11} | ||
|
||
!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression()) | ||
!1 = distinct !DIGlobalVariable(name: "foo", scope: !2, file: !3, line: 1, type: !5, isLocal: false, isDefinition: true) | ||
!2 = distinct !DICompileUnit(language: DW_LANG_C99, file: !3, producer: "clang version 17.0.0", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, globals: !4, splitDebugInlining: false, nameTableKind: None) | ||
!3 = !DIFile(filename: "1.c", directory: "llvm-project") | ||
!4 = !{!0} | ||
!5 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) | ||
!6 = !{i32 7, !"Dwarf Version", i32 3} | ||
!7 = !{i32 2, !"Debug Info Version", i32 3} | ||
!8 = !{i32 1, !"wchar_size", i32 2} | ||
!9 = !{i32 8, !"PIC Level", i32 2} | ||
!10 = !{i32 7, !"frame-pointer", i32 2} | ||
!11 = !{!"clang version 17.0.0"} |