-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support alignment in DILocalVariable
Fixes #217.
- Loading branch information
1 parent
85828a2
commit 4ae7f50
Showing
3 changed files
with
38 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
;; Adapted from https://github.com/llvm/llvm-project/blob/2ede126b1b3fae52cddece5cf1f75b474a9c7932/llvm/test/Assembler/dilocalvariable.ll | ||
|
||
; CHECK: !named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9} | ||
!named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9} | ||
|
||
!llvm.module.flags = !{!10} | ||
!llvm.dbg.cu = !{!1} | ||
|
||
!0 = distinct !DISubprogram(unit: !1) | ||
!1 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang", | ||
file: !2, | ||
isOptimized: true, flags: "-O2", | ||
splitDebugFilename: "abc.debug", emissionKind: 2) | ||
!2 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") | ||
!3 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed) | ||
!4 = !DILocation(scope: !0) | ||
|
||
; CHECK: !5 = !DILocalVariable(name: "foo", arg: 3, scope: !0, file: !2, line: 7, type: !3, flags: DIFlagArtificial, align: 32) | ||
; CHECK: !6 = !DILocalVariable(name: "foo", scope: !0, file: !2, line: 7, type: !3, flags: DIFlagArtificial) | ||
!5 = !DILocalVariable(name: "foo", arg: 3, | ||
scope: !0, file: !2, line: 7, type: !3, | ||
flags: DIFlagArtificial, align: 32) | ||
!6 = !DILocalVariable(name: "foo", scope: !0, | ||
file: !2, line: 7, type: !3, flags: DIFlagArtificial) | ||
|
||
; CHECK: !7 = !DILocalVariable(arg: 1, scope: !0) | ||
; CHECK: !8 = !DILocalVariable(scope: !0) | ||
!7 = !DILocalVariable(scope: !0, arg: 1) | ||
!8 = !DILocalVariable(scope: !0) | ||
!9 = distinct !{} | ||
|
||
!10 = !{i32 2, !"Debug Info Version", i32 3} |
Submodule llvm-pretty
updated
from cd9a51 to 9f7762
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