mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-01 07:30:31 +00:00
Add a comment explaining why this code doesn't just call
ParseMetadataValue. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111914 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
41d6ab4b88
commit
6826114d6e
@ -1134,6 +1134,10 @@ bool LLParser::ParseInstructionMetadata(Instruction *Inst,
|
||||
if (ParseToken(lltok::exclaim, "expected '!' here"))
|
||||
return true;
|
||||
|
||||
// This code is similar to that of ParseMetadataValue, however it needs to
|
||||
// have special-case code for a forward reference; see the comments on
|
||||
// ForwardRefInstMetadata for details. Also, MDStrings are not supported
|
||||
// at the top level here.
|
||||
if (Lex.getKind() == lltok::lbrace) {
|
||||
ValID ID;
|
||||
if (ParseMetadataListValue(ID, PFS))
|
||||
|
Loading…
Reference in New Issue
Block a user