forked from llvm-mirror/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AsmParser: Recognize DW_TAG_* constants
Recognize `DW_TAG_` constants in assembly, and output it by default for `GenericDebugNode`. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228042 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
1 parent
6adbfa3
commit 1602e58
Showing
9 changed files
with
57 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,27 @@ | ||
; RUN: llvm-as < %s | llvm-dis | FileCheck %s | ||
; RUN: verify-uselistorder %s | ||
|
||
; CHECK: !named = !{!0, !1, !1, !2, !2, !2, !2, !3, !4} | ||
!named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8} | ||
; CHECK: !named = !{!0, !1, !1, !2, !2, !2, !2, !3, !4, !2} | ||
!named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9} | ||
|
||
; CHECK: !0 = !{} | ||
!0 = !{} | ||
|
||
; CHECK-NEXT: !1 = !GenericDebugNode(tag: 3, header: "some\00header", operands: {!0, !2, !2}) | ||
; CHECK-NEXT: !1 = !GenericDebugNode(tag: DW_TAG_entry_point, header: "some\00header", operands: {!0, !2, !2}) | ||
!1 = !GenericDebugNode(tag: 3, header: "some\00header", operands: {!0, !3, !4}) | ||
!2 = !GenericDebugNode(tag: 3, header: "some\00header", operands: {!{}, !3, !4}) | ||
|
||
; CHECK-NEXT: !2 = !GenericDebugNode(tag: 3) | ||
; CHECK-NEXT: !2 = !GenericDebugNode(tag: DW_TAG_entry_point) | ||
!3 = !GenericDebugNode(tag: 3) | ||
!4 = !GenericDebugNode(tag: 3, header: "") | ||
!5 = !GenericDebugNode(tag: 3, operands: {}) | ||
!6 = !GenericDebugNode(tag: 3, header: "", operands: {}) | ||
|
||
; CHECK-NEXT: !3 = distinct !GenericDebugNode(tag: 3) | ||
; CHECK-NEXT: !3 = distinct !GenericDebugNode(tag: DW_TAG_entry_point) | ||
!7 = distinct !GenericDebugNode(tag: 3) | ||
|
||
; CHECK-NEXT: !4 = !GenericDebugNode(tag: 65535) | ||
!8 = !GenericDebugNode(tag: 65535) | ||
|
||
; CHECK-NOT: ! | ||
!9 = !GenericDebugNode(tag: DW_TAG_entry_point) |
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,4 @@ | ||
; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s | ||
|
||
; CHECK: <stdin>:[[@LINE+1]]:29: error: invalid DWARF tag 'DW_TAG_badtag' | ||
!0 = !GenericDebugNode(tag: DW_TAG_badtag) |
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,4 @@ | ||
; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s | ||
|
||
; CHECK: <stdin>:[[@LINE+1]]:29: error: expected DWARF tag | ||
!0 = !GenericDebugNode(tag: "string") |
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