mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 06:25:18 +00:00
Add support for empty named metadata too. This isn't particularly
useful, but it is nice for consistency. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108262 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -544,6 +544,7 @@ bool LLParser::ParseNamedMetadata() {
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
SmallVector<MDNode *, 8> Elts;
|
SmallVector<MDNode *, 8> Elts;
|
||||||
|
if (Lex.getKind() != lltok::rbrace)
|
||||||
do {
|
do {
|
||||||
// Null is a special case since it is typeless.
|
// Null is a special case since it is typeless.
|
||||||
if (EatIfPresent(lltok::kw_null)) {
|
if (EatIfPresent(lltok::kw_null)) {
|
||||||
|
@@ -9,6 +9,7 @@ define void @foo() {
|
|||||||
declare void @llvm.zonk(metadata, i64, metadata) nounwind readnone
|
declare void @llvm.zonk(metadata, i64, metadata) nounwind readnone
|
||||||
|
|
||||||
!named = !{!0}
|
!named = !{!0}
|
||||||
|
!another_named = !{}
|
||||||
!0 = metadata !{i8** null}
|
!0 = metadata !{i8** null}
|
||||||
!1 = metadata !{i8* null, metadata !2}
|
!1 = metadata !{i8* null, metadata !2}
|
||||||
!2 = metadata !{}
|
!2 = metadata !{}
|
||||||
|
Reference in New Issue
Block a user