AsmParser: Stop requiring 'name:' when it's not printed
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 16 Mar 2015 19:01:54 +0000 (19:01 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 16 Mar 2015 19:01:54 +0000 (19:01 +0000)
commit3c0d9fa2d4f1fe389f45a2651aabb2ab50693fa1
treec67e9bb42d2d1ba74e359d9f5cacaa6ee7d58cb1
parent8233e8c2338fb555803183e69753b11d1ee8e8fc
AsmParser: Stop requiring 'name:' when it's not printed

r230877 optimized which fields are written out for `CHECK`-ability, but
apparently missed changing some of them to optional in `LLParser`.

Fixes PR22921.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232400 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AsmParser/LLParser.cpp
test/Assembler/invalid-mdglobalvariable-missing-name.ll [deleted file]
test/Assembler/invalid-mdobjcproperty-missing-name.ll [deleted file]
test/Assembler/invalid-mdsubprogram-missing-name.ll [deleted file]
test/Assembler/mdglobalvariable.ll
test/Assembler/mdobjcproperty.ll
test/Assembler/mdsubprogram.ll