This repository has been archived by the owner on Apr 23, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IR: Drop scope from MDTemplateParameter
Follow-up to r229740, which removed `DITemplate*::getContext()` after my upgrade script revealed that scopes are always `nullptr` for template parameters. This is the other shoe: drop `scope:` from `MDTemplateParameter` and its two subclasses. (Note: a bitcode upgrade would be pointless, since the hierarchy hasn't been moved into place.) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229791 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
1 parent
a3fa104
commit eac950e
Showing
15 changed files
with
97 additions
and
147 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
4 changes: 0 additions & 4 deletions
4
test/Assembler/invalid-mdtemplatetypeparameter-missing-parent.ll
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
test/Assembler/invalid-mdtemplatetypeparameter-missing-type.ll
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,4 +1,4 @@ | ||
; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s | ||
|
||
; CHECK: [[@LINE+1]]:41: error: missing required field 'type' | ||
!0 = !MDTemplateTypeParameter(scope: !{}) | ||
; CHECK: [[@LINE+1]]:44: error: missing required field 'type' | ||
!0 = !MDTemplateTypeParameter(name: "param") |
5 changes: 0 additions & 5 deletions
5
test/Assembler/invalid-mdtemplatevalueparameter-missing-parent.ll
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
test/Assembler/invalid-mdtemplatevalueparameter-missing-tag.ll
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,4 +1,4 @@ | ||
; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s | ||
|
||
; CHECK: [[@LINE+1]]:67: error: missing required field 'tag' | ||
!0 = !MDTemplateValueParameter(scope: !{}, type: !{}, value: i32 7) | ||
; CHECK: [[@LINE+1]]:55: error: missing required field 'tag' | ||
!0 = !MDTemplateValueParameter(type: !{}, value: i32 7) |
4 changes: 2 additions & 2 deletions
4
test/Assembler/invalid-mdtemplatevalueparameter-missing-type.ll
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,5 +1,5 @@ | ||
; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s | ||
|
||
; CHECK: [[@LINE+2]]:56: error: missing required field 'type' | ||
; CHECK: [[@LINE+2]]:44: error: missing required field 'type' | ||
!0 = !MDTemplateValueParameter(tag: DW_TAG_template_value_parameter, | ||
scope: !{}, value: i32 7) | ||
value: i32 7) |
4 changes: 2 additions & 2 deletions
4
test/Assembler/invalid-mdtemplatevalueparameter-missing-value.ll
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,5 +1,5 @@ | ||
; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s | ||
|
||
; CHECK: [[@LINE+2]]:53: error: missing required field 'value' | ||
; CHECK: [[@LINE+2]]:41: error: missing required field 'value' | ||
!0 = !MDTemplateValueParameter(tag: DW_TAG_template_value_parameter, | ||
scope: !{}, type: !{}) | ||
type: !{}) |
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
Oops, something went wrong.